• Hi John,

    I stumbled across this plugin after a support request for one of my premium plugins and found it was the culprit of a post type issue.

    A few of my plugins use non-public post types, say trigger-box.

    The Post Type Switcher shows on the edit trigger-box page but the select box is populated with public post types only. So, updating a trigger-post post type will change the post type to post, with no option to switch back or fix this.

    The fix is simple, I added this line after line 75 in /post-type-switcher.php.

    // don't show for non-public post types
    if( $cpt_object->public !== true ) {
    	return;
    }

    Couldn’t find an up-to-date GitHub repo for this plugin. Let me know if there is one and you’d prefer a PR instead. 🙂

    Thanks!

    https://wordpress.org/plugins/post-type-switcher/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Don't show for non-public post types’ is closed to new replies.