• Resolved pizzapie79

    (@pizzapie79)


    By default, Joinchat adds a specific section with its configuration in every post, pages and taxonomy. But I don’t need such granular control, so I’d really like to hide those specific configuration by default.

    Is there some code snippet I can use to hide those options? Maybe you can add a way to enable/disable those options in future releases?

    Thanks in advance ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Pacotole

    (@pacotole)

    Hi! You cause this PHP snippet to disable Joinchat metabox in all Post types and Taxonomies:

    add_filter( 'joinchat_post_types_meta_box', '__return_empty_array' );
    add_filter( 'joinchat_taxonomies_meta_box', '__return_empty_array' );
    Thread Starter pizzapie79

    (@pizzapie79)

    Thanks, it works ??

    But (just a suggestion) it would be nice to have a way to enable/disable by plugin options in future releases. Thanks again for your help ??

    Thread Starter pizzapie79

    (@pizzapie79)

    Sorry to bump, what about Woocommerce products and categories?

    It seems that “add_filter( ‘joinchat_taxonomies_meta_box’, ‘__return_empty_array’ );” does not cover WooCommerce categories. So, can you please tell me the filter to hide joinchat meta box in woocommerce product and categories?

    Thanks ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.