wpseo_enhanced_slack_data хук-фильтрYoast 1.0

Filter: wpseo_enhanced_slack_data Allows filtering of the enhanced data for sharing on Slack.

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

add_filter( 'wpseo_enhanced_slack_data', 'wp_kama_wpseo_enhanced_slack_data_filter', 10, 2 );

/**
 * Function for `wpseo_enhanced_slack_data` filter-hook.
 * 
 * @param array                  $data         The enhanced Slack sharing data.
 * @param Indexable_Presentation $presentation The presentation of an indexable.
 *
 * @return array
 */
function wp_kama_wpseo_enhanced_slack_data_filter( $data, $presentation ){

	// filter...
	return $data;
}
$data(массив)
The enhanced Slack sharing data.
$presentation(Indexable_Presentation)
The presentation of an indexable.

Где вызывается хук

Enhanced_Data_Presenter::get()
wpseo_enhanced_slack_data
yoast/src/presenters/slack/enhanced-data-presenter.php 64
return \apply_filters( 'wpseo_enhanced_slack_data', $data, $this->presentation );

Где используется хук в Yoast SEO

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