acf add options page to custom post type
if( function_exists('acf_add_options_page') ) { acf_add_options_sub_page(array( 'page_title' => 'Offers Page Content', 'menu_title' => 'offers-page-content', 'parent_slug' => 'edit.php?post_type=offers', )); }
Here is what the above code is Doing:
1. We’re checking to see if the ACF plugin is active.
2. If it is, we’re adding a sub-page to the Offers page in the admin menu.
3. We’re giving the sub-page a title and a slug.
4. We’re telling the sub-page to be a child of the Offers page.