Carbon_Fields\Container\User_Meta_Container::is_valid_save PHP Method

is_valid_save() public method

Checks whether the current request is valid
public is_valid_save ( $user_id ) : boolean
return boolean
    public function is_valid_save($user_id = 0)
    {
        if (!isset($_REQUEST[$this->get_nonce_name()]) || !wp_verify_nonce($_REQUEST[$this->get_nonce_name()], $this->get_nonce_name())) {
            // Input var okay.
            return false;
        } else {
            if (!$this->is_valid_attach()) {
                return false;
            }
        }
        return $this->is_valid_save_conditions($user_id);
    }