acf/shortcode/prevent_access_to_fields_on_non_public_posts filter-hookACF 1.0

Usage

add_filter( 'acf/shortcode/prevent_access_to_fields_on_non_public_posts', 'wp_kama_acf_shortcode_prevent_access_to_fields_on_non_public_posts_filter' );

/**
 * Function for `acf/shortcode/prevent_access_to_fields_on_non_public_posts` filter-hook.
 * 
 * @param  $true 
 *
 * @return 
 */
function wp_kama_acf_shortcode_prevent_access_to_fields_on_non_public_posts_filter( $true ){
	// filter...
	return $true;
}
$true
-

Where the hook is called

acf_shortcode()
acf/shortcode/prevent_access_to_fields_on_non_public_posts
acf/includes/api/api-template.php 1061
if ( $atts['post_id'] !== false && ( (int) $atts['post_id'] !== (int) acf_get_valid_post_id() ) && ( ! is_post_publicly_viewable( $decoded_post_id['id'] ) ) && apply_filters( 'acf/shortcode/prevent_access_to_fields_on_non_public_posts', true ) ) {

Where the hook is used in Advanced Custom Fields PRO

Usage not found.