wpseo_save_indexable
Action: wpseo_save_indexable Allow developers to perform an action when the indexable is updated.
Использование
add_action( 'wpseo_save_indexable', 'wp_kama_wpseo_save_indexable_action', 10, 2 ); /** * Function for `wpseo_save_indexable` action-hook. * * @param Indexable $indexable The saved indexable. * @param Indexable $indexable_before The indexable before saving. * * @return void */ function wp_kama_wpseo_save_indexable_action( $indexable, $indexable_before ){ // action... }
- $indexable(Indexable)
- The saved indexable.
- $indexable_before(Indexable)
- The indexable before saving.
Где вызывается хук
wpseo_save_indexable
yoast/src/builders/indexable-builder.php 307
\do_action( 'wpseo_save_indexable', $indexable, $indexable_before );