wp wc php if not is single product page
// Step 1: Check if it's not a single product page
if ( ! is_product() ) {
// Step 2: Perform actions for non-single product pages
// Example: Output a message
echo "This is not a single product page.";
// Example: Add additional code or functions specific to non-single product pages
// ...
}