function custom_related_products_args( $args ) { $args[‘posts_per_page’] = 2; // Related products সংখ্যা $args[‘columns’] = 2; // কলাম সংখ্যা return $args; } add_filter( ‘woocommerce_output_related_products_args’, ‘custom_related_products_args’ );Continue reading
$isProduction = true; $triggerWords = [‘.loc’, ‘localhost’, ‘.local’, ‘staging.’, ‘.staging’, ‘.testing’, ‘.dev’]; // edit triggerWords for your setup, these as fairly standard identifiers of non production env // the goal is to check the root url for a string that…Continue reading
Add_filter(‘woocommerce_package_rates’, ‘wf_sort_shipping_methods’, 10, 2); function wf_sort_shipping_methods($available_shipping_methods, $package) { // Arrange shipping methods as per your requirement $sort_order = array( ‘wf_shipping_ups’ => array(), ‘wf_shipping_usps’ => array(), ‘free_shipping’ => array(), ‘local_pickup’ => array(), ‘legacy_flat_rate’ => array(), ); // unsetting all methods that…Continue reading
Add_filter(‘woocommerce_package_rates’, ‘wf_sort_shipping_methods’, 10, 2); function wf_sort_shipping_methods($available_shipping_methods, $package) { // Arrange shipping methods as per your requirement $sort_order = array( ‘wf_shipping_ups’ => array(), ‘wf_shipping_usps’ => array(), ‘free_shipping’ => array(), ‘local_pickup’ => array(), ‘legacy_flat_rate’ => array(), ); // unsetting all methods that…Continue reading
/* WordPress Sitemap deaktivieren BEGIN */ add_filter( ‘wp_sitemaps_enabled’, ‘__return_false’ ); /* WordPress Sitemap deaktivieren END */ /* WordPress Autoupdates deaktivieren BEGIN */ if ( ! defined( ‘AUTOMATIC_UPDATER_DISABLED’ ) ) { define( ‘AUTOMATIC_UPDATER_DISABLED’, true ); } /* WordPress Autoupdates deaktivieren END…Continue reading
google-site-verification=3G4LhnxdCyUKQP-Hh3Re_gVM6oB2csSIWbSa6N1KbK0Continue reading