Inpsyde\MultilingualPress\Module\CustomPostTypeSupport\URLFilter::disable PHP Method

disable() public method

Removes the filter.
Since: 3.0.0
public disable ( ) : boolean
return boolean Whether or not the filter was removed successfully.
    public function disable()
    {
        if (has_filter($this->hook, $this->filter)) {
            remove_filter($this->hook, $this->filter);
            return true;
        }
        return false;
    }