woocommerce prüfen Sie, ob Shop -Seite

add_action( 'template_redirect', 'check_if_shoppage' );

function check_if_shoppage() 
{
    if(is_shop())
	{
		echo '<script>console.log("On shop page");</script>';
	}
}
Button