Category "wordpress"

Installment widget - Wordpress + Woocommerce

What's the problem? I want to add a PayU plugin installment widget for a product subpage for WooCommerce, but I have a problem with displaying the product price

Remove a wordpress add_filter function from plugin

I have a plugin that is creating a custom template via add_filter: // Create a template view for the new CPT add_filter('single_template', [$this, 'setTemplateA

Slow Query in WooCommerce, what to do?

I have written a Plugin that displays the sum of all purchases of all customers of the last year, ordered by the sum (Customer who bought the most is on top). I

Wordpress Multisite installation issue on staging website

I am trying to change my website into multisite on my staging server. When I add define('MULTISITE', true); in wp-config.php on my local machine setup, it works

Substraction in woocommerce

my problem is as follows. I am currently generating a tax receipt for some orders (not all) in my woocommerce. but the customer would like for 3 of the 4 produc

How to block modification of .htaccess file wordpress

please tell me what can I do to protect my .htaccess file ? Recently I was hacked and I noticed that I can navigate into different place of my wp-admin (Posts,

Docker: Apache in Apple Silicon M1

I have a docker-compose.yml file: version: '1' services: mariadb: image: 'docker.io/bitnami/mariadb:10.3-debian-10' ports: - '3307:3306' vol

Wordpress: Deleted comments in DB but still shows count in admin sidebar. How can I fix this?

I noticed a lot of spam posts, comments, & users on my WordPress site. I directly deleted all of the spam from the database, but I'm still seeing a comment

How to share node_modules and package.json files between two directories?

As I experiment with WordPress's new Gutenberg development methods, I noticed that I need to create individual block folders within the plugins directory. These

Contact Form 7 & Flamingo - Getting Flamingo Post ID as a Mail tag

On a WordPress website I'm using Contact Form 7 and Flamingo to manage contact forms, and store the data. I've been using [_serial_number] in my emails to ident

Wordpress Hook for only order processing

I am making a WordPress plugin, where I need to make an API call every time order status updates to "processing" from "pending". function __construct(){

Elementor Plugin on Wordpress keeps loading and I get a console error /wp-admin/admin-ajax.php 500

how are you? My website was working well and now I'm unable to create or edit pages using elementor because the 'loading' keeps spinning and nothing happens. I

can we remove filter titles from woocommerce url?

I am trying to remove the titles from the filter URLs, /product-category/t-shirt/color=red/size=medium/neck=round-neck/ to /product-category/t-shirt/red/medium/

Wordpress Add New Post shows this "Warning: Attempt to read property "post_type" on null in /var/www/html/blog/wp-includes/post.php on line 7589"

I recently migrated my website to new AWS ec2 linux instance. Php8.0, MySql8.0, all pages work fine. Wordpress database was exported from Mysql5.7 and imported

Meta box tabs - in a custom post type

Is it possible to insert meta box tabs in a specific custom post type. I've been looking at the example : add_filter( 'rwmb_meta_boxes', function ( $meta_boxes

Restrict use of coupon if customer have used related coupons in previous orders in WooCommerce

I am looking for a way, to limit coupon usage and to display an error message if a customer have used related coupons in previous orders before in WooCommerce.

WordPress change upload_dir for specific files to root dont work

I would like to place PDF files uploaded via the media library in a separate folder in the root directory. I have already developed a filter for this and the fi

Lottie Player got deleted immediately after page load

Folks my Lottie player HTML element is got deleted every time the page loads. The website is on WordPress and the Lottie player code is infused through a custom

WooCommerce php 8.1 + WordPress 5.7.2

I have an issue with using new PHP 8.1 on WordPress 5.7.2. Everything work just fine, until turn on WooCommerce 5.3.0. Then whole site fall down. Here is error

Disable auto-complete fields (auto-fill) on Woocommerce checkout except for some fields

I use below code to disable Autocomplete Fields in the woocommerce checkout page: add_filter('woocommerce_checkout_get_value','__return_empty_string',10); Abov