' . __( 'By default, WooCommerce only shows the \'Custom Emails\' tab for the standard \'product\' post type. Use this option to specify other product post types which will show the Custom Emails tab. This should be a comma-separated list.', 'woo_custom_emails_domain' ) . '
';
// Code example.
echo '
Example:
show_if_booking, show_if_grouped
';
// Instructions to find CSS Class.
echo '
' . __( 'How to Find the CSS Class for a Custom Product To find the class for your product type, do the following:', 'woo_custom_emails_domain' );
echo '';
echo __( '
Go to Products, and Edit a custom product
', 'woo_custom_emails_domain' );
echo __( '
Scroll down to the Product Data table
', 'woo_custom_emails_domain' );
echo __( '
Inspect the code for a tab menu item, like Inventory (or any menu item which appears only for your product type)
', 'woo_custom_emails_domain' );
echo __( '
Find the custom CSS class for your product type which is assigned to that tab menu item. These classes usually start with show_if_ -- ex: "show_if_booking"
', 'woo_custom_emails_domain' );
echo __( '
Copy and paste that CSS class into the field above
', 'woo_custom_emails_domain' );
echo __( '
Save your settings
', 'woo_custom_emails_domain' );
echo '';
echo '
';
// Note text.
echo '
' . __( 'Please Note: This feature is experimental and is not guaranteed to work. Some WooCommerce add-ons use their own method of sending emails, outside of the normal WooCommerce process this plugin uses.', 'woo_custom_emails_domain' ) . '
';
}
}
if ( is_admin() ) {
$wce_settings = new Woo_Custom_Emails_Per_Product_Admin_Settings();
}
/*
* Retrieve values with:
* $wce_settings_options = get_option( 'woocustomemails_settings_name' ); // Array of All Options
* $show_in_admin_email = $wce_settings_options['show_in_admin_email']; // Include in Admin Emails
* $display_classes = $wce_settings_options['display_classes']; // Display for Other Product Types
*/