Skip to content

Location is_page_for_custom_post_type == 'recette' #21

Description

@mrleblanc101

Hi,
Based on the README.md.

Image

I tried this:

'location' => array(
    array(
        array(
            'param' => 'is_page_for_custom_post_type',
            'operator' => '==',
            'value' => Recettes::NAME,
        ),
    ),
),

But it didn't work.
I asked Claude and it says I need to use:

'location' => array(
    array(
        array(
            'param' => 'page_type',
            'operator' => '==',
            'value' => Recettes::NAME . '_page',
        ),
    ),
),

Which doesn't appear to be documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions