Home › Forums › ACF PRO › How to have a option sub page pointing to another URL (like CPT edit) › Reply To: How to have a option sub page pointing to another URL (like CPT edit)
Just you “myoptions”, the following creates a sub menu item than links to the page edit admin
add_action('admin_menu', 'add_my_admin_subpage');
function add_my_admin_subpage() {
add_submenu_page('myoptions', // parent slug
'page title', // shouldn't matter
'test link', // menu text
'manage_options',
'edit.php?post_type=page');
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.