Inpsyde\MultilingualPress\Module\CustomPostTypeSupport\URLFilter::enable PHP Метод

enable() публичный Метод

Adds the filter.
С версии: 3.0.0
public enable ( ) : boolean
Результат boolean Whether or not the filter was added successfully.
    public function enable()
    {
        if (has_filter($this->hook, $this->filter)) {
            return false;
        }
        add_filter($this->hook, $this->filter, 10, 2);
        return true;
    }