LabelPrinting ( Mihai )

/** * This API allows you to create your own “shortcodes” which you can add to label templates * and they will be replaced with values you fetch in api.php * Follow the documentation here: https://www.ukrsolution.com/Wordpress/Print-Barcode-Labels-for-WooCommerce-Products#details */ /******************************** * Add…Continue reading

remove state/province/judet field from checkout form ( Mihai )

/* * https://developer.woocommerce.com/docs/cart-and-checkout-removing-checkout-fields/ * for example following is not really required for PL because if you check the $locale for PL it is like : {“PL”:{“postcode”:{“priority”:65},”state”:{“required”:false,”hidden”:true}}} … but for the BG & HU is already require=false but its not hidden=true…Continue reading

get-last-completed-orders-api-route ( Mihai )

add_action(‘rest_api_init’, function () { register_rest_route(‘sg24tothemoon/v1’, ‘/completed-orders’, array( ‘methods’ => ‘GET’, ‘callback’ => ‘get_recently_completed_orders_json’, ‘permission_callback’ => ‘__return_true’, // Adjust this for security in production )); }); function get_recently_completed_orders_json(WP_REST_Request $request) { global $wpdb; // Access the global WordPress database object $hours =…Continue reading