Support » Plugin: WP Socializer » Disable WP Socialiser on Custom Post Types

  • Resolved 509tyler


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author vaakash



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

    Thank you.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable WP Socialiser on Custom Post Types’ is closed to new replies.