WP Socializer
[resolved] Disable WP Socialiser on Custom Post Types (3 posts)

  1. 509tyler
    Posted 3 years ago #

    It would be really cool if WP Socializer queried your custom post types and added them to the admin such that you can globally enable of disable them. Many themes and developers are using custom post types.

    So I had to hack the WP Sociailzer plugin and add the Show/Hide sidebar admin selector to my custom post type. I am using the QA FAQ plugin and added that custom post type to this file:

    wpsr-admin.php on line 1330

    ## Add the meta box to post editing page
    function wpsr_add_meta_box() {
    	add_meta_box('wp-socializer','WP Socializer','wpsr_meta_box','post','side');
    	add_meta_box('wp-socializer','WP Socializer','wpsr_meta_box','page','side');
    	add_meta_box('wp-socializer','WP Socializer','wpsr_meta_box','qa_faqs','side'); //this is my custom post type
    add_action('admin_menu', 'wpsr_add_meta_box');

    This way I can manually hide these from my custom post types. If someone else has a better way to add the custom post types to the WP Socializer admin, that would also be a great solution.


  2. vaakash
    Plugin Author

    Posted 3 years ago #


    Thanks for tweak. Really nice feature. I'll implement in the next version as default.

    Thank you.

  3. yeahman45
    Posted 2 years ago #

    and where do you disable wp-socializer globally for custom post type in dashboard??

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Socializer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.