Inspired by the thread ‘Hiding order status in My Account recent orders list page’ I tried to hide orders with status (Pending Payment) on the ‘My Account’ page. I modified the code slightly, but I can’t get it to work. I really appreciate any help. Thank you. Answer Right now you are using the woocommerce_my_account_my_orders_actions filter which will let you
Tag: wordpress
Why is there a 0 appearing before selecting from dropdown PHP & Ajax
I have 2 dropdown boxes, when you select from the first dropdown which is a main category, the second one will then load subcategories for the user to select from. However, on selecting from the first category dropdown a 0 then shows below the second. Then when you select a category a 0 shows Can anyone assist to why this
How to get document (seo) title of specific page in WordPress
I don’t mean the page or post title but the title between <title> and </title>. The so-called SEO or document title. I’ve just googled but found nothing. I only know to get document title of current page we can use wp_get_document_title(). But how to get document title of specific page by its post or category ID for example? Answer Ok,
Set a max displayed available stock quantity on Woocommerce archives for variable products
I want to set the maximum number of stock available items on Woocommerce shop pages. I am using Display the stock availability for all product types in Woocommerce archive pages answer code, which does a great job, showing the available stock for variations in a Woocommerce shop. But I want to show a maximum number, say 50, if the stock
WordPress video shortcode adds “?_=2” to the end of my src option
Has anybody had this experience? My WordPress (WordPress 5.4.2 running Twenty Seventeen Child theme) has an XYZ Code Snippet that echoes but somewhere in the process, a four character string is added to the end of the src so that I get Media error: Format(s) not supported or source(s) not foundDownload File: https://mywebsite/wp-content/uploads/securepdfs/C0112.mp4?_=2 when the page renders. Answer The problem
Display product custom field as order item meta on WooCommerce admin order pages
I have created my woocommerce products (fruits and vegetables) with a bunch of custom meta data I can correctly input and display them on my website. One of this data is the unit (ie kilos, box of 6, …
Removing Hello Dolly Actually Breaks my WordPress Site
Well this is new to me, and quite confusing as my curious mind seeks for a resolution. Hello Dolly does NOT display as a plugin option in my list of plugins within the wordpress location. Within Cpanel in the plugins folder, “Hello” is the name of the plugin (folder) that exists. If I remove this folder, I then get a
Build a multidimensional PHP array out of MySQL table data linked by values in one column
I am using a Wordpress plugin (Advanced CF7 DB). It puts the results of the contact form into the MySQL database so it can be displayed on the front end of the website. There are two tables with data like this. Table 1: Table 2: The id in table 1 corresponds to the data_id in table 2. I need to
Add product weight and dimensions as order item meta data on WooCommerce admin manual orders
based on Save product custom-field as custom order item metadata for WooCommerce admin manual orders I have these codes that show the weight and dimensions of the product for orders placed from the frontend, but I can’t get them to work for orders that are placed manually from the backend. When I add the products I do not see the
Problem with getting count with WordPress
I am trying to display wordpress image using it ID but the code i use is giving an error which is This is my code Answer You are just using get_post_meta incorrectly – it returns an array by default, but you are passing in true as the third parameter which changes it to return a single value only – see