Title: [Plugin: Post Type Switcher] Custom post types &#039;Magic Action Box&#039;
Last modified: August 20, 2016

---

# [Plugin: Post Type Switcher] Custom post types 'Magic Action Box'

 *  [Martin](https://wordpress.org/support/users/rastarr/)
 * (@rastarr)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-post-type-switcher-custom-post-types-magic-action-box/)
 * I’ve used this plugin before and needed to delete it due to it interfering so
   much with Custom Post Types.
 * It comes to light especially now as I am using the plugin ‘Magic Action Box’ –
   [http://wordpress.org/extend/plugins/magic-action-box/](http://wordpress.org/extend/plugins/magic-action-box/)
 * In creating a new custom box, I found that when Post Type Switcher is installed,
   other content is treated as a Post, publishes out to my RSS Feed and generally
   corrupts the Custom Post Type function.
 * I installed this latest version and this behaviour is still evident.
    I’ve got
   no idea what “Filter ‘pts_post_type_filter’ to adjust the boundaries.” actually
   means either.
 * Since the plugin has no UI, I’m presuming this means that people need to go in
   and hack this plugin’s PHP code – is that right?
 * [http://wordpress.org/extend/plugins/post-type-switcher/](http://wordpress.org/extend/plugins/post-type-switcher/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [John James Jacoby](https://wordpress.org/support/users/johnjamesjacoby/)
 * (@johnjamesjacoby)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-post-type-switcher-custom-post-types-magic-action-box/#post-2694022)
 * Never hack the plugin code. The filter is there for other plugin developers to
   opt into making their plugins work with Post Type Switcher without needing to
   modify its code.
 *  Thread Starter [Martin](https://wordpress.org/support/users/rastarr/)
 * (@rastarr)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-post-type-switcher-custom-post-types-magic-action-box/#post-2694023)
 * So you’re saying other plugin developers need to be aware that your plugin exists
   and make theirs compatible, otherwise your plugin messes with their post type?
   
   Kinda doesn’t make that much sense to me – I’d have preferred some other paradigm
   in this plugin because so far it’s messed up a number of different content types.
 * Great idea, though I’m not so sure the execution seems right, for me and the 
   content types I have at least.
 *  [Ryann Micua](https://wordpress.org/support/users/pogidude/)
 * (@pogidude)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-post-type-switcher-custom-post-types-magic-action-box/#post-2694030)
 * hmmmm.. looks like post-type-switcher only retrieves custom post types that is
   set to “public” and “show_ui” – where magic action box “public” is set to false.
 * just curious though, [@rastarr](https://wordpress.org/support/users/rastarr/)
   how are you using post type switcher? seems to me that this plugin is more like
   a utility tool that only needs to be used once in a while, like when you need
   to “convert” a content type from one post type to another i.e. page->post
 *  Plugin Author [John James Jacoby](https://wordpress.org/support/users/johnjamesjacoby/)
 * (@johnjamesjacoby)
 * [14 years ago](https://wordpress.org/support/topic/plugin-post-type-switcher-custom-post-types-magic-action-box/#post-2694038)
 * Ryann is correct. Post Type Switcher isn’t really intended to be something to
   keep active, since you should rarely ever need to switch types around.
 * If there is a specific use-case, and specific duplication steps can be provided,
   I’ll look into trying to support some other post type configurations.
 *  [Ryann Micua](https://wordpress.org/support/users/pogidude/)
 * (@pogidude)
 * [14 years ago](https://wordpress.org/support/topic/plugin-post-type-switcher-custom-post-types-magic-action-box/#post-2694039)
 * Hey John, Post type switcher isn’t picking up Magic Action Box’s post types because
   MAB post type is set to
 * “public => false” but “show_ui => true”
 *  [GaryPaulson](https://wordpress.org/support/users/garypaulson/)
 * (@garypaulson)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-post-type-switcher-custom-post-types-magic-action-box/#post-2694064)
 * I found this solution, may just have to replace ‘acf’ with ‘MAB’ or add it along
   with ‘acf’
 * [http://wordpress.org/support/topic/post-type-switcher-bug-with-advanced-custom-fields?post-2821135](http://wordpress.org/support/topic/post-type-switcher-bug-with-advanced-custom-fields?post-2821135)
 * Code added to my child-theme’s functions.php:
 *     ```
       /* Post Type Switcher (PTS) & Advanced Custom Fields (ACF)
        * Keep PTS from messing with the ACF post type when editing the ACF pages.
        * Source: marcosf on http://wordpress.org/support/topic/post-type-switcher-bug-with-advanced-custom-fields#post-2821135
       */
   
       add_filter( 'pts_post_type_filter', "pts_disable");
       function pts_disable( $args ) {
           $postType  = get_post_type();
           if( 'acf' === $postType ){
               $args = array(
                 'name' => 'acf'
               );
           }
           return $args;
       }
       /* End PTS & ACF */
       ```
   

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘[Plugin: Post Type Switcher] Custom post types 'Magic Action Box'’ is
closed to new replies.

 * ![](https://ps.w.org/post-type-switcher/assets/icon-256x256.jpg?rev=1823578)
 * [Post Type Switcher](https://wordpress.org/plugins/post-type-switcher/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-type-switcher/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-type-switcher/)
 * [Active Topics](https://wordpress.org/support/plugin/post-type-switcher/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-type-switcher/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-type-switcher/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [GaryPaulson](https://wordpress.org/support/users/garypaulson/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-post-type-switcher-custom-post-types-magic-action-box/#post-2694064)
 * Status: not resolved