WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. 509tyler
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/wp-socializer/

  2. vaakash
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

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

    Thank you.

  3. yeahman45
    Member
    Posted 3 weeks 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

About this Topic

Tags

No tags yet.