• Resolved ConiMoss

    (@conimoss)


    I have authors on my blog who login to my WordPress site and post content.

    However, I do not want them to see the “Set your user reaction counts to the desired number” box in the WP dashboard when adding or editing the post.

    Is it possible to disable/remove this option (box) for non admins through functions.php?

    That would be helpful.
    Thank you.

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

    (@wpreactions)

    Hi,

    You can use following code in functions.php to hide this section from edit post screen.

    add_action('admin_head', function() { ?>
       #wpra_options .wpra-fake-counts {display: none !important;}
    <?php });

    Please check and let us know if it worked.

    WP Reactions Support team.

    Thread Starter ConiMoss

    (@conimoss)

    Unfortunately it didn’t worked.

    I have tried putting your code in functions.php.

    I have also tried putting the below code

    #wpra_options .wpra-fake-counts {display: none !important;}

    in the Customize > Additional CSS.

    Cleared cached, but still nothing.

    Plugin Author wpreactions

    (@wpreactions)

    Please try following code

    add_action('admin_head', function() { ?>
    	<style>
    		#wpra_options .wpra-fake-counts {display: none !important;}
    	</style>
    <?php });
    Thread Starter ConiMoss

    (@conimoss)

    It worked! Thanks a lot.

    Plugin Author wpreactions

    (@wpreactions)

    You are welcome.

    Please do not forget to leave feedback for plugin to help us.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘DIsable/remove “Set your user reaction counts…” for non admins’ is closed to new replies.