Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // register a top-level options page
- if ( function_exists( 'acf_add_options_page' ) ) {
- acf_add_options_page( [
- 'page_title' => 'My Options Page',
- 'menu_title' => 'My Options Page',
- 'menu_slug' => 'my-options-page',
- 'capability' => 'edit_posts',
- 'parent_slug' => '',
- 'position' => 3,
- 'icon_url' => false,
- 'redirect' => false,
- 'post_id' => 'options',
- 'autoload' => false,
- 'update_button' => 'Update',
- ] );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement