acf/shortcode/preview_capability_message хук-фильтрACF 1.0

Limit previews of ACF shortcode data for users without publish_posts permissions.

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

add_filter( 'acf/shortcode/preview_capability_message', 'wp_kama_acf_shortcode_preview_capability_message_filter' );

/**
 * Function for `acf/shortcode/preview_capability_message` filter-hook.
 * 
 * @param  $__ 
 *
 * @return 
 */
function wp_kama_acf_shortcode_preview_capability_message_filter( $__ ){

	// filter...
	return $__;
}
$__
-

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

acf_shortcode()
acf/shortcode/preview_capability_message
acf/includes/api/api-template.php 867
return apply_filters( 'acf/shortcode/preview_capability_message', __( '[ACF shortcode value disabled for preview]', 'acf' ) );

Где используется хук в Advanced Custom Fields PRO

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