Category "wordpress"

Last order would be re-order in wooCommerce. How is it possible?

I am developing a woocommerce site that has 3 categories like vegetable, Fast food & Fish. vegetables are the main category of his eCommerce site. My client

How can I add my own class name in wordpress site?

I was working with a site. The site has 3 div i.e 3 containers. The 2nd container has the colored body, so I want to toggle with the border radius. but the by d

WordPress File Access Permission

I am trying to upload an image to set a background image for my theme, but I get this error: Unable to create directory wp-content/uploads/2018/05. Is its p

Make Shipping Method fields Mandatory on Woocommerce checkout page

I'm sure that there is a quick bit of code out there that will solve this issue, but I'm struggling to find it. I have a WordPress/WooCommerce website set-up a

Fatal error: Uncaught exception 'Exception' with message 'Illegal widget setting ID

i recently noticed that when try to load Appearance > Customize i get this error: Notice: Trying to get property of non-object in /home/kavwxoln/feelfreehyp

How to create a individual template for page or post in custom plugin?

I've have a template inside my plugins directory (quiz-template.php). I need to assign it to a page. I don't want to create template inside theme directory. Eve

WP Learndash plugin, get userdata related to courses and lessons

Hi I am using learndash Wordpress plugin. I want to get the data related to a user tht how many courses he is enrolled in and how many has he completed. Is ther

wp_localize_script multiple times from Shortcode

I have a shortcode [tips] in which at the end I'm doing: wp_enqueue_script( "tips", plugins_url( "/tips/js/tips.js", PATH ), array("jquery"), TIPS_VERSION, tru

CORS issue fetching data with WPGraphQL and Next.JS

I have created a Next.js app using Wordpress as a CMS and WPGraphQL to fetch data. I have created apollo-client the following way: uri: process.env.NEXT_PUBLI

Apache Error - AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error

I have checked my Apache error log and found the following errors: [Tue Mar 13 05:04:47.855612 2018] [core:error] [pid 18177] [client xxx.xxx.xxx.xxx] AH0

How to submit the custom form data in database in WordPress without plugin using ajax?

I have a created a contact form in the function.php and added short code on my page and it's working. I am getting my form. function st_contact_form(){ ob_star

Change user role if checkout custom checkbox is checked in WooCommerce

I'm trying to add a custom function to my child-themes functions.php file where a checkbox is added to the bottom of the billing details form on the checkout pa

Changing currency on checkout with WooCommerce Multilingual Plugin

I'm trying to implement currency change on checkout with WooCommerce Multilingual Plugin. I need a country with COP and the rest of countries with USD. First I

Disable slick slider when viewport is less than 481px

I have a while loop that display posts using the slick slider multiple items format. This displays and works with no problems. I want to be able to 'disable'

woocommerce get_order_report_data to show order_item_id

I would like to show order_item_id by get_order_report_data() I can use the array to show product id and order id : array( '_product_id' => array(

How can I remove the "Advanced" panel of all blocks in WordPress block editor?

I want to optimize the WordPress block editor for my clients and hide everything that might confuse my clients. I've already removed several panels (colors, typ

Shortcode or PHP inside a shortcode in Wordpress

On a php page in wordpress, I have a shortcode for an accordion, that consists of the following, and works perfectly: <?php echo do_shortcode('[su_accordion

Applying programmatically a coupon to an Order in WooCommerce3

I'm developing a plugin that creates an order directly (no cart) and applies a coupon. In version 3.0 of the woo API the function add_coupon() has been deprecat

What's the net::ERR_HTTP2_PROTOCOL_ERROR about?

I'm currently working on a website, which triggers a net::ERR_HTTP2_PROTOCOL_ERROR 200 error on Google Chrome. I'm not sure exactly what can provoke this error,

Insert/Edit link modal text fields can't be focused TinyMce Wordpress

I have a TinyMce instance inside a bootstrap Modal. When i click the "Insert/Edit Link" button, the modal opens correctly but the text fields are not focusable