Target only single product page

I assume you mean to use this on a single product’s page, right? If so, try this: add_action(‘admin_head’, ‘wwc_my_custom_css’); function wwc_my_custom_css() { if (!current_user_can(‘edit_pages’){ global $post; $isProduct = $post->post_type == ‘product’; // use the actual name for product if ($isProduct ) { echo ‘<style> #mceu_27-body, #wp-content-editor-tools{ display:none !important; } </style>’; } } }

Make e-Mail optional on Woocommerce sign up

Try this code in functions.php. Since it is a requirement in billing, we need to set it as false. // For billing email – Make them not required add_filter( ‘woocommerce_billing_fields’, ‘filter_billing_fields’, 20, 1 ); function filter_billing_fields( $billing_fields ) { // Only on checkout page if( ! is_checkout() ) return $billing_fields; $billing_fields[‘billing_email’][‘required’] = false; return $billing_fields; … Read more