Function vanilla_theme_is_page
Checks if a post has been set as the selected value for an ACF option field. It is developed in a way that resembles the WordPress core functions is_page(), is_single() etc. Meant to be used for custom fields set on options pages.
Parameters summary
string |
$acf_field_slug |
<p>The ACF field where the given post might have been set as a valule.</p> |
integer |
$post_ID = null |
<p>The ID of the post to check against or the current post if not set.</p> |