• Resolved bonfanticonsulting

    (@bonfanticonsulting)


    I want hide Super Social Option when a member write a new post (at the end of new post page)

    I use Adminimize but in the article section is not able this option.

    How possible hide it?

    Thanks

    Dario B

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Heateor Support

    (@heateor)

    Hi Dario,

    You can add following code in the functions.php file of your active theme:

    /**
     * Remove meta options for non-admin users
     */
    function my_remove_meta_boxes() {
    	if ( ! current_user_can( 'manage_options' ) ) {
    		$post_types = get_post_types( array( 'public' => true ), 'names', 'and' );
    		$post_types = array_unique( array_merge( $post_types, array( 'post', 'page' ) ) );
    		foreach($post_types as $type){
    			remove_meta_box( 'the_champ_meta', $type, 'advanced' );
    		}
    	}
    }
    add_action( 'admin_init', 'my_remove_meta_boxes' );

    We will include this in the upcoming release of the plugin.

    Thread Starter bonfanticonsulting

    (@bonfanticonsulting)

    @heateor Thanks For Reply and Solution.

    It work! In the next release add this code but add checkbox for ability or no it too.

    Thanks a lot again.

    Your are greats!

    Plugin Author Heateor Support

    (@heateor)

    No problem. If you could leave a review https://wordpress.org/support/plugin/super-socializer/reviews/, would be much appreciated 🙂

    Thread Starter bonfanticonsulting

    (@bonfanticonsulting)

    I leave a review.Thanks again for all. Great!

    Plugin Author Heateor Support

    (@heateor)

    Thanks for the review 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide’ is closed to new replies.