Home Forums Add-ons Options Page options page label


options page label

  • Hi,

    The choice label of options page should be better if use page_title instead of menu_title, sometimes we added some submenu pages with same menu title, but usually we use different page titles, it will be easier to be recognized which page in some area like location settings.

  • 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) {
        foreach ($pages as $page) {
          $choices[$page['menu_slug']] = $page['page_title'];
        return $choices;
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.