Carbon_Fields\Container\Theme_Options_Container::is_valid_save PHP Method

is_valid_save() public method

Perform checks whether the current save() request is valid.
public is_valid_save ( ) : boolean
return boolean
    public function is_valid_save()
    {
        if (!isset($_POST[$this->get_nonce_name()]) || !wp_verify_nonce($_POST[$this->get_nonce_name()], $this->get_nonce_name())) {
            // Input var okay.
            return false;
        }
        return true;
    }