Home › Forums › Add-ons › Options Page › options page label › Reply To: options page label
I’m not sure if this will be changed, but there is a way to alter what is being displayed for the choices by filtering them after ACF adds them.
add_filter('acf/location/rule_values/options_page', 'options_page_rule_values_titles', 20);
function options_page_rule_values_titles($choices) {
$pages = acf_get_options_pages();
if (!$pages) {
return;
}
foreach ($pages as $page) {
$choices[$page['menu_slug']] = $page['page_title'];
}
return $choices;
}
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.