Support

Account

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;
      }