Category "wordpress"

How can I hide stripe from WordPress admin side for specific user role?

I am using User Role Editor and trying to hide this stripe gateway for specific user What should I check in settings of user editor role so that I can see ord

Apply woocommerce coupon only to the cart total, not to the tax line

I am working on a WooCommerce site. When I apply a coupon on the checkout page, it automatically applies to the tax as well. I only want the coupon code to app

How to display WordPress Post LIST Rest API By Category? ReactJS

I am new to ReactJs and Need to implement wordpress Rest api, I am trying to figure out post list by category, My code is here. getPostsByCategory = async () =

Wordpress admin only shows text

my wordpress admin only shows text, What maybe the cause of this and how can i fix it? i attach a photo of the error

React Native create helper

I am very new to react native and try to create my first app. I now want to create functions to get data from my api. How can I create a file with several funct

WooCommerce - unset "<product> removed notice…" on cart page

actions and filters. On my WooCommerce site I get the following message when I remove a product from the shopping cart: "<product name>" removed. Undo?

VS Code highlighted all my wordpress function name

I am using PHP Intelephense(version 1.3.7) which is the latest version and my VS Code is up to date There was no problem before but a few days ago, it keeps on

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