wpseo_saved_indexable
Action: wpseo_save_indexable Allow developers to perform an action right after the indexable is created or updated.
Использование
add_action( 'wpseo_saved_indexable', 'wp_kama_wpseo_saved_indexable_action' );
/**
* Function for `wpseo_saved_indexable` action-hook.
*
* @param Indexable $indexable The saved indexable.
*
* @return void
*/
function wp_kama_wpseo_saved_indexable_action( $indexable ){
// action...
}
- $indexable(Indexable)
- The saved indexable.
Где вызывается хук
wpseo_saved_indexable
yoast/src/helpers/indexable-helper.php 323
\do_action( 'wpseo_saved_indexable', $indexable );
Где используется хук в Yoast SEO
yoast/src/alerts/user-interface/default-seo-data/default-seo-data-watcher.php 53
\add_action( 'wpseo_saved_indexable', [ $this, 'check_for_default_seo_data' ], 10, 1 );