Posts 2 Posts
[resolved] When post type isn't showed up in ui then no link in metabox (2 posts)

  1. Marko Heijnen
    Posted 4 years ago #

    When there is a relationship with a post type that isn't visible in the admin then the link to the edit screen should be removed.

    It's not a case you see often but it can occur. It maybe make sense to make a filter for it so someone can say that there is an edit screen but somewhere else.


  2. scribu
    Plugin Author

    Posted 4 years ago #

    The P2P box uses get_edit_post_link(), so you can hook into the 'get_edit_post_link' filter to change this globally. To disable links, you could just return '#'.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Posts 2 Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.