Category "wordpress"

Alternative to closing php tag and entering straight HTML when echo doesn't work

I apologize in advance for the horrible title; I'm sure there's a better way to ask this question, but I couldn't come up with it. I'll try to do a better job w

How to pass "$email" to WooCommerce emails template files if not available by default

I've checked many threads on the platform. But there is no thread which explains how to use the conditional $email>id parameter straight into a template. Thi

Is using $wpdb->get_charset_collate() necessary when creating tables in WordPress?

When creating tables in WordPress, is it necessary to use $wpdb->get_charset_collate()? Wouldn't the default charset automatically be used? Example: $charset

How to show the related categories on sidebar on the category/posts page using php

I have a quote website and it has almost 50 categories, with parent child relationship. What I want is when I open love quote page, on the sidebar it will show

Hide specific WooCommerce products based on product category for users under the age of 18

I want to hide specific products, based on product category for users under the age of 18. So if the user is not logged in, or if logged in but under the age of

Hide specific WooCommerce products based on product category for users under the age of 18

I want to hide specific products, based on product category for users under the age of 18. So if the user is not logged in, or if logged in but under the age of

WP contact form 7: get current date value to populate an input field

Using contact form 7 on my website, would like to retrieve the form submission date as an input value to use in "Jetpack CRM" for a custom field. I want to avoi

I can't start xero oauth session in wordress plugin

I am trying to connect users xero accounts with my app and I have that problem Warning: session_start(): Cannot start session when headers already sent in /stor

How to use WordPress GDPR Cookie Consent plugin for Google Analytics

I add the GDPR Cookie Consent plugin in my WordPress application. When the use disables non necessary cookies, the Google Analytics should be blocked otherwise

WooCommerce - Empty the current cart on add-to-cart event

So I'm selling a digital product with WooCommerce but I don't have a shop page or anything, I just have a big CTA button on my landing page which adds the given

How to Subscription details from the wcs_get_subscriptions_for_order() function

I have this variable: $subscriptions = wcs_get_subscriptions_for_order($order_id, array('order_type' => 'parent')); Using this print_r() I can see lots of d

Display the WooCommerce product price inside a custom function

I have created a custom function to display 3 custom fields (ACF) and the product price in the WooCommerce Archive/Shop page. My Custom fields are showing corre

PHP cURL (SSL certificate problem: self signed certificate in certificate chain)

When making a php cURL request in production, I am getting the following error: Problem with SSL certificate: self-signed certificate in the certificate chain.

Display a success custom notice after Placing an Order in WooCommerce

I need to check on the checkout page whether payment has been successful or not and display the message: 'Your payment has been successful', and then redirect t

TypeError: 'undefined' is not a function (evaluating '$(document)')

I'm using a WordPress site. I'm including this script in the header. When the script loads, I get this error: TypeError: 'undefined' is not a function (eval

How to load site with scroll

I want to ask how to load the site data on scrolling. Thank you.

Elementor White Screen of Death and JSON ERROR

I need your help. I am using elementor on my website for editing a WordPress website, but lately, I have been having a problem when it comes to loading it up fo

How to Create WooCommerce Subscription Product via. REST API?

I am able to find the REST API docs for WooCommerce: https://woocommerce.github.io/woocommerce-rest-api-docs/#create-a-product but am unable to figure out how t

Redirect User After creating a page

I want to redirect the users of my site to a custom thank you page after they create a page and send it for review. I found this snippet, but this one is for po

Disable VERTICAL Scroll only

Bonjour amis développeur ! , Since yesterday i'm blocking to block a vertical scrolling of my site but just the vertical, i create a slider with parallax