Yoast\WP\SEO\Integrations\Watchers
Indexable_Post_Watcher::register_hooks() public Yoast 1.0
Initializes the integration.
This is the place to register hooks and filters.
{} Это метод класса: Indexable_Post_Watcher{}
Хуков нет.
Возвращает
null.
Использование
$Indexable_Post_Watcher = new Indexable_Post_Watcher(); $Indexable_Post_Watcher->register_hooks();
Код Indexable_Post_Watcher::register_hooks() Indexable Post Watcher::register hooks Yoast 15.7
public function register_hooks() {
\add_action( 'wp_insert_post', [ $this, 'build_indexable' ], \PHP_INT_MAX );
\add_action( 'delete_post', [ $this, 'delete_indexable' ] );
\add_action( 'wpseo_save_indexable', [ $this, 'updated_indexable' ], \PHP_INT_MAX, 2 );
\add_action( 'edit_attachment', [ $this, 'build_indexable' ], \PHP_INT_MAX );
\add_action( 'add_attachment', [ $this, 'build_indexable' ], \PHP_INT_MAX );
\add_action( 'delete_attachment', [ $this, 'delete_indexable' ] );
}