WPSEO_Frontend_Primary_Category::register_hooks()publicYoast 1.0

Registers the hooks necessary for correct primary category behaviour.

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

Хуков нет.

Возвращает

null. Ничего.

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

$WPSEO_Frontend_Primary_Category = new WPSEO_Frontend_Primary_Category();
$WPSEO_Frontend_Primary_Category->register_hooks();

Код WPSEO_Frontend_Primary_Category::register_hooks() Yoast 19.10

public function register_hooks() {
	add_filter( 'post_link_category', [ $this, 'post_link_category' ], 10, 3 );
}