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

Filter to add integration toggles from add-ons.

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

add_filter( 'wpseo_integration_toggles', 'wp_kama_wpseo_integration_toggles_filter' );

/**
 * Function for `wpseo_integration_toggles` filter-hook.
 * 
 * @param array $integration_toggles Array with integration toggle objects where each object should have a `name`, `setting` and `label` property.
 *
 * @return array
 */
function wp_kama_wpseo_integration_toggles_filter( $integration_toggles ){

	// filter...
	return $integration_toggles;
}
$integration_toggles(массив)
Array with integration toggle objects where each object should have a name, setting and label property.

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

Yoast_Integration_Toggles::load_toggles()
wpseo_integration_toggles
yoast/admin/views/class-yoast-integration-toggles.php 97
$integration_toggles = apply_filters( 'wpseo_integration_toggles', $integration_toggles );

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

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