Skip to content

Exclude ACF sub_page #83

@Loosie94

Description

@Loosie94

Version information

  • Plugin version : 1.1.10
  • PHP : 8
  • WordPress : 6.2
  • ACF version :
  • Polylang version :

Hi guys, I'm trying to exclude a sub options page.
ACF function:

acf_add_options_sub_page([
        "page_title" => __("Timer", "timer"),
        "menu_title" => __("Timer", "timer"),
        "menu_slug" => "timer",
        "post_id" => "timer",
        "redirect" => false,
        "position" => "6",
        "parent_slug" => "options",
        "icon_url" => "dashicons-list-view",
        "update_button" => __("Save", "timer"),
    ]);

How can I exclude this one from the plugin?
I'm trying the filter like this:

    add_filter('bea.aofp.excluded_post_ids', function ($ids) {
        $ids[] = 'timer';
        return $ids;
    }, 10, 1);

But that doesn't seem to work. Any idea what I'm doing wrong?
Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions