Just to say I encountered the same problem (3.5.1)
Additionally,
‘show’ => ‘false’,
‘context’ => ‘advanced’
… also have no visible either on my setup.
I guess the quickfix is to set the css to display:none
The id used to identify the admin box is unique depending on what posttype you are editing. So easy!
#p2p-to-Session_to_Abstract
#p2p-from-Session_to_Abstract
This filter works but removes all admin boxes which isnt quite what I want.
e.g.
function restrict_p2p_box_display( $show, $ctype, $post ) {
if ( ‘ConnectionName’ == $ctype->name && ‘to’ == $ctype->get_direction() ) {
return 1;
}
return 0;
}
https://github.com/scribu/wp-posts-to-posts/wiki/Admin-box-filters
Great Plugin. Just recoded a weeks work having found this gem!