wpseo_save_indexable хук-событие . Yoast 1.0
Action: 'wpseo_save_indexable' - Allow developers to perform an action when the indexable is updated.
Использование
add_action( 'wpseo_save_indexable', 'action_function_name_6377', 10, 2 ); function action_function_name_6377( $indexable_before, $indexable ){ // action... }
- $indexable_before(Indexable)
- The indexable before saving.
- $indexable(Indexable)
- The saved indexable.
Где вызывается хук
wpseo_save_indexable
yoast/src/builders/indexable-builder.php 316
\do_action( 'wpseo_save_indexable', $indexable, $indexable_before );
Где используется хук в ядре Yoast SEO
yoast/src/integrations/watchers/indexable-ancestor-watcher.php 83
\add_action( 'wpseo_save_indexable', [ $this, 'reset_children' ], \PHP_INT_MAX, 2 );
yoast/src/integrations/watchers/indexable-post-watcher.php 123
\add_action( 'wpseo_save_indexable', [ $this, 'updated_indexable' ], \PHP_INT_MAX, 2 );