Inpsyde\MultilingualPress\Module\UserAdminLanguage\LocaleFilter::enable PHP Method

enable() public method

Adds the filter.
Since: 3.0.0
public enable ( ) : boolean
return 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);
        return true;
    }