Skip to content
Snippets Groups Projects
Select Git revision
  • 5c85cfc27f14a5bed8843214aec7d7009fa0f7be
  • master default protected
  • update-template
3 results

functions_flexible_shipping.php

Blame
  • functions_flexible_shipping.php 504 B
    <?php
    
    add_filter( 'flexible-shipping/group-method/supports/shipping-zones', function ( $status ) {
    	$option_value = get_option( 'wpdesk_flexible_shipping_group_method_supports_shipping_zones', '' );
    	if ( $option_value ) {
    		return true;
    	}
    
    	return $status;
    } );
    
    add_filter( 'flexible-shipping/group-method/supports/edit', function ( $status ) {
    	$option_value = get_option( 'wpdesk_flexible_shipping_group_method_supports_edit', '' );
    	if ( $option_value ) {
    		return true;
    	}
    
    	return $status;
    } );