Skip to content

Instantly share code, notes, and snippets.

@izzygld
Last active November 1, 2021 09:37
Show Gist options
  • Save izzygld/13e4ca8650093076d1f869fd6425bea7 to your computer and use it in GitHub Desktop.
Save izzygld/13e4ca8650093076d1f869fd6425bea7 to your computer and use it in GitHub Desktop.
Acf Options page
add_action('acf/init', function () {
if ( function_exists( 'acf_add_options_sub_page' ) ){
acf_add_options_sub_page( array(
'title' => 'Photo Settings',
'parent' => 'edit.php?post_type=photo',
'capability' => 'manage_options',
'show_in_graphql' => true,
) );
}
});.
query MyQuery {
allSettings {
#Is your page here?
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment