Admin box problem with post status 'auto-draft'
-
I use p2p 1.5.2 together with the translation plugin polylang and several CPTs.
For better workflow I create p2p-connection on the fly via the {$new_status_$post->post_type} hook for a new translation of a CPT which has already p2p-connections.
The new p2p-connection are created with
p2p_type('MY_CONNECTION_TYPE')->connect()
This works fine, but the Admin box doesn’t show the newly created connection, cause the query sorts out posts with status ‘auto-draft’ by default.
Is it possible to prevent this default behavior?I tried to change this with the ‘p2p_connected_args’ filter and
$args['post_status'] = 'auto-draft';
But this didn’t work.Thanks
The topic ‘Admin box problem with post status 'auto-draft'’ is closed to new replies.