This is simply a list of view and location-related filter hooks included in the WooCommerce Catalog Mode - Pricing, Enquiry Forms & Promotions files. This list also includes the supported parameters and example codes.
wmodes/register-view-locations
- Parameters:
- $view_locations array()
Example Codes:
function custom_register_view_locations( $view_locations ) { //add your custom code here return $view_locations; } add_filter( 'wmodes/register-view-locations', 'custom_register_view_locations', 10, 1 );
wmodes/register-view-paths
- Parameters:
- $view_paths array()
Example Codes:
function custom_register_view_paths( $view_paths ) { //add your custom code here return $view_paths; } add_filter( 'wmodes/register-view-paths', 'custom_register_view_paths', 10, 1 );
wmodes/compose-css
- Parameters:
- $css array()
- $options array()
Example Codes:
function custom_compose_css( $css, $options ) { //add your custom code here return $css; } add_filter( 'wmodes/compose-css', 'custom_compose_css', 10, 2 );
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article