WPSEO_Rewrite::__construct()
Class constructor.
Метод класса: WPSEO_Rewrite{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WPSEO_Rewrite = new WPSEO_Rewrite(); $WPSEO_Rewrite->__construct();
Код WPSEO_Rewrite::__construct() WPSEO Rewrite:: construct Yoast 24.1
public function __construct() { add_filter( 'query_vars', [ $this, 'query_vars' ] ); add_filter( 'term_link', [ $this, 'no_category_base' ], 10, 3 ); add_filter( 'request', [ $this, 'request' ] ); add_filter( 'category_rewrite_rules', [ $this, 'category_rewrite_rules_wrapper' ] ); add_action( 'created_category', [ $this, 'schedule_flush' ] ); add_action( 'edited_category', [ $this, 'schedule_flush' ] ); add_action( 'delete_category', [ $this, 'schedule_flush' ] ); }