I am looking to display the last Order Note, currently only viewable via Admin in Woocommerce, on the customer side in their Order History. So they can view the tracking number we add in after the …
Tag: wordpress
WordPress custom endpoint – rest_invalid_handler
I am completely new with PHP and WordPress, however I start to write my first plugin that should be able to expose a custom endpoint. I managed to register and activate the plugin and the route, but when I am trying to access this endpoint I am getting the following error: If I access the: http://localhost/my…
Change admin dashboard WooCommerce widget title
I want to change the WooCommerce dashboard widget title from ‘WooCommerce Status’ to something else. I understand that I need to use a hook in my functions.php but I’m struggling to make this work. I’ve found the function and the file in WooCommerce that is generating the dashboard wid…
Change default WooCommerce order status to processing for cheque and bacs payments
In WooCommerce, I need all my orders to go immediately to “processing” status to have the order-processing email sent directly when the order is processed. By default, this behavior exist for Paypal and COD orders, but not for BACS and Cheque where the default status is on-hold. I tried several sn…
How can i fetch numbered URLs that contain zero in PHP?
i’ve a problem concerning a PHP function for a WordPress site. As of this article https://perishablepress.com/wordpress-infinite-duplicate-content/ WordPress has a problem for infinite pagination. So i need to fix this by catching numbered URLs and redirecting them to its parent URL. I found this code o…
Always display shipping address in WooCommerce email notifications
WooCommerce used to show shipping address no matter which shipping method was selected during checkout, if you had to hide the shipping address from emails you had to do a custom job like in “https://stackoverflow.com/questions/38936283/hide-shipping-address-on-local-pickup-in-woocommerce-email-notifica…
Single Sign On from WordPress to media wiki
I am trying to create Single sign-on from WordPress to MediaWiki. I have WPOauthServer running on my WordPress (WordPress plugin). And on my wiki I have Extension:OAuth2 Client installed. I want that my users only log in to WordPress and from there they can go to the wiki without logging to wiki again. The WP…
Display the published date of every product on Woocommerce shop page
I’m looking for solution to display products published date on shop page. I tried the following code, but it show only for first product Any help will be greatful Answer the_date function assumes you are inside a loop that is properly setting up the post data, which in your case seems not to be done. Yo…
Pass custom product text field as cart item data in WooCommerce
The goal here is to have a text field on the product page. The customer fills it in and adds to cart. The text is added to the product and included in the cart and on the checkout and on the order. …
Disable item name link for specific product in Woocommerce cart checkout and orders
I’m looking to disable the product link to the product page of a specific product in the cart. This product is a gift product automatically added to the cart when the cart subtotal amount equals a …