Browsing Category

Wordpress PHP

Call function from main WordPress theme in a plugin

I have a function in my theme functions.php file which returns a value: function my_theme_function() { return "100"; } Anywhere in my theme templates I

woocommerce new order email notification not working

I have installed woo-commerce on my website but when a new order is placed, no notification email is being received by the user or admin.

I need the (Submit this form )button to be clicked automatically when the page loads (WORDPRESS)

iam customizing a page in wordpress , i dont need the user to see this page when it loads , so i need the Sumnit

Amazon Web Services WP Plugin cURL Error

Hi there I am having trouble activating a wordpress plugin ““ Plugin could not be activated because it triggered a fatal error. The official Amazon

PHP WordPress issue with isset() Function

All this code is written on the same page <form method="post" action = "" > <p> Username: <input type="text" name = "username" /> </p><br> <p>

WordPress Database error when i try to increase post per page in backend

WordPress database error: [Duplicate entry ‘0’ for key ‘PRIMARY’] INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES (1, ‘edit_post_per_page’, ‘100’) Read more here: WordPress Database error

How do you print an entire post into a page (wordpress)

Hi I’ve made a custom post type ‘work_fields’ that calls in information from yet another custom post type ‘members’ into the post, and now I’m

Email authentication for registration in WordPress

After user register mail need to send to registered mail id. User after confirmation by clicking that link in mail account need to create. How

Passing a folder name through a url as a parameter to invoke a php function

I am trying to list the contents of a directory by passing a folder name as a URL parameter to invoke a php function. I

Conditional Content on WooCommerce Store Page

I run a WooCommerce Store which utilises the WooCommerce memberships plugin to restrict content based on the users ‘plan’. I want to display some conditional

Colour in Backorder Products dropdown based on stock in WooCommerce

I have this code: add_filter( 'woocommerce_variation_is_active', 'grey_out_variations_when_is_backorder', 10, 2 ); function grey_out_variations_when_is_backorder( $grey_out, $variation ) { if ( ! $variation->is_in_stock() && $variation- >backorders_require_notification() ) $grey_out

Malicious file reported by Web Host

I have shared hosting and when I uploaded the site it works fine and after one day the site goes down and I checked the

How to solve Outbound Port 80, 443, 587 and 465 for your account are BLOCKED

I Have the shared hosting and when i uploaded the site it works fine and after one day the site goes down and i checked

PHP, return when search terms are empty

I’m a bit stuck with custom search I inherited. My goal is for list not to load when search term is empty, I tried adding

How can I generate admin notices from within a plugin?

Within a plugin class I have: private $notices = array(); Various functions within the class add notices to this array as array($classname,$message). Then, I’m expecting

How to redirect to "login page" or "buy page" depending on user login status

I am having a page where there is a button named buy.While clicking the buy button its suppose to goto buy page if the user

Back to Top 145132 wordpress questions, 32 Wordpress answers.
Wordpress related, All rights reserved
Powered by Creative Advertising