Support » Plugin: Show Content Only » disable for none admin

  • Maarouf79

    (@maarouf79)


    Hi
    First at all, really nice plugin!
    Is it possible to disable the plugin in product page for none admin?

    • This topic was modified 4 years ago by Maarouf79.
    • This topic was modified 4 years ago by Maarouf79.
Viewing 1 replies (of 1 total)
  • Thread Starter Maarouf79

    (@maarouf79)

    I solved with this code inside the theme php

    add_action( 'add_meta_boxes' , 'remove_my_meta_boxes', 40 );
    function remove_my_meta_boxes()
    {
        remove_meta_box( 'contentonly',  'product', 'side');
    	remove_meta_box( 'misc-pub-section public-post-preview',  'product', 'side');
    }
    
Viewing 1 replies (of 1 total)
  • The topic ‘disable for none admin’ is closed to new replies.