WPSEO_Rewrite::__construct()publicYoast 1.0

Class constructor.

Метод класса: WPSEO_Rewrite{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WPSEO_Rewrite = new WPSEO_Rewrite();
$WPSEO_Rewrite->__construct();

Код WPSEO_Rewrite::__construct() Yoast 22.4

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' ] );

	add_action( 'created_category', [ $this, 'schedule_flush' ] );
	add_action( 'edited_category', [ $this, 'schedule_flush' ] );
	add_action( 'delete_category', [ $this, 'schedule_flush' ] );
}