ACF_Legacy_Location::__construct() public ACF 5.0.0
Constructor.
{} Это метод класса: ACF_Legacy_Location{}
Хуков нет.
Возвращает
null.
Использование
$ACF_Legacy_Location = new ACF_Legacy_Location(); $ACF_Legacy_Location->__construct();
- (void) (обязательный)
Список изменений
С версии 5.0.0 | Введена. |
Код ACF_Legacy_Location::__construct() ACF Legacy Location:: construct ACF 5.9.1
public function __construct() {
// Add legacy method filters.
if( method_exists($this, 'rule_match') ) {
add_filter( "acf/location/rule_match/{$this->name}", array( $this, 'rule_match' ), 5, 3 );
}
if( method_exists($this, 'rule_operators') ) {
add_filter( "acf/location/rule_operators/{$this->name}", array( $this, 'rule_operators' ), 5, 2 );
}
if( method_exists($this, 'rule_values') ) {
add_filter( "acf/location/rule_values/{$this->name}", array( $this, 'rule_values' ), 5, 2 );
}
}