WPSEO_Rewrite::__construct()publicYoast 1.0

Class constructor.

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код WPSEO_Rewrite::__construct() Yoast 19.6.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' ] );

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