Hiding Featured Checkbox setting from backend product pages Hiding Featured Checkbox setting from backend product pages wordpress wordpress

Hiding Featured Checkbox setting from backend product pages


Yes it's possible with a custom function hooked in admin_head wordpress hook, that will inject in the admin head some CSS rules. Here we target the product post types pages.

Here is that code:

add_action('admin_head', 'hiding_and_set_product_settings');function hiding_and_set_product_settings(){    echo '<style>        .post-type-product #catalog-visibility-select p:nth-of-type(2),        .post-type-product #catalog-visibility-select label[for=_featured],        .post-type-product #catalog-visibility-select input[type=checkbox] { visibility: hidden !important; display none !important;}    </style>';}

Code goes in function.php file of your active child theme (or theme) or also in any plugin file.

This code is tested and works.

See this screenshot of my test raw server:

enter image description here