WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Yoast\WP\SEO\Integrations\Watchers

Indexable_Post_Meta_Watcher::register_hooks() public Yoast 1.0

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

Хуков нет.

Возвращает

Null. Ничего.

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

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

Код Indexable_Post_Meta_Watcher::register_hooks() Yoast 15.6.2

<?php
public function register_hooks() {
	// Register all posts whose meta have changed.
	\add_action( 'added_post_meta', [ $this, 'add_post_id' ], 10, 3 );
	\add_action( 'updated_post_meta', [ $this, 'add_post_id' ], 10, 3 );
	\add_action( 'deleted_post_meta', [ $this, 'add_post_id' ], 10, 3 );

	// Remove posts that get saved as they are handled by the Indexable_Post_Watcher.
	\add_action( 'wp_insert_post', [ $this, 'remove_post_id' ] );
	\add_action( 'delete_post', [ $this, 'remove_post_id' ] );
	\add_action( 'edit_attachment', [ $this, 'remove_post_id' ] );
	\add_action( 'add_attachment', [ $this, 'remove_post_id' ] );
	\add_action( 'delete_attachment', [ $this, 'remove_post_id' ] );

	// Update indexables of all registered posts.
	\register_shutdown_function( [ $this, 'update_indexables' ] );
}