wpseo_add_cleanup_counts_to_indexable_bucket
Action: Adds the possibility to add additional to be cleaned objects.
Использование
add_action( 'wpseo_add_cleanup_counts_to_indexable_bucket', 'wp_kama_wpseo_add_cleanup_counts_to_indexable_bucket_action' ); /** * Function for `wpseo_add_cleanup_counts_to_indexable_bucket` action-hook. * * @param To_Be_Cleaned_Indexable_Bucket $bucket An indexable cleanup bucket. New values are instances of To_Be_Cleaned_Indexable_Count. * * @return void */ function wp_kama_wpseo_add_cleanup_counts_to_indexable_bucket_action( $bucket ){ // action... }
- $bucket(To_Be_Cleaned_Indexable_Bucket)
- An indexable cleanup bucket. New values are instances of To_Be_Cleaned_Indexable_Count.
Где вызывается хук
wpseo_add_cleanup_counts_to_indexable_bucket
yoast/src/analytics/application/to-be-cleaned-indexables-collector.php 82
\do_action( 'wpseo_add_cleanup_counts_to_indexable_bucket', $to_be_cleaned_indexable_bucket );