Skip to content

Admin connection search box #453

Open
@grapejuiceFM

Description

@grapejuiceFM

Hi,
this is my connection

p2p_register_connection_type( array(
'name' => 'event_to_post',
'from' => 'event',
'to' => 'post',
'reciprocal' => true,
) );

but in admin, when i try to connect an event to a post, the p2p admin box shows me all the post_type i have (not just 'post'). So It shows me many result (all the posts of all post type i have in wordpress), also image are display and I can't find easly the post I want to connectd.

How can I filter the admin p2p search to show me only the post type of the specific connection (in the example above I would find yust post o event).
Thank you so much

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions