Hiding Recommended checkbox setting on backend pages

In WooCommerce, I would like to hide or uncheck the FEATUREDproduct page settings in Backend (Admin), see the screenshot below.

I tried using CSS display:none, but this does not work.

Any help would be appreciated

Thanks

screenshot of the backend feature setting on products pages
(source: imgh.us )

+4
source share
1 answer

Yes, perhaps with the help of a custom function hooked on a wordpress hook that introduces some CSS rules to the administrator’s head. Here we focus on product message types pages. admin_head

Here is the 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>';
}

function.php ( ), .

.

:

enter image description here

+4

Source: https://habr.com/ru/post/1669747/


All Articles