0

Change number of related products output Hook

To change the number of related products display in the detail page,use the following code in your theme‚Äôs functions.php file. [code language=”php”] add_filter( ‘woocommerce_output_related_products_args’, ‘sp_related_products_args’ ); function sp_related_products_args( $args ) { $args[‘posts_per_page’] = 4; // 4 related products $args[‘columns’] =… Continue Reading

0

Events Manager Pro Redirect After Booking

Events Manager Pro Redirect After Booking

Events Manager Pro Redirect After Booking. Past the following code in your functions.php file and modify the url below, it’ll redirect on successful bookings. function icode_em_booking_redirect(){ ?> jQuery(document).bind(’em_booking_success’, function() { window.location.href = ‘http://your-domain.com’; });