Wordpress questions and answers, Wordpress related issues
  • Home
  • Customization
    • Custom post types
    • Custom field
    • Custom taxonomy
  • Functions
    • Permalinks
    • Shortcodes
    • Filters
    • Loop
    • WP query
  • Plugins
    • Woocommerce
    • Plugin development
  • .htaccess
  • Mod rewrite
  • Apache
  • HTML
  • PHP
  • MySQL
  • Ajax
  • Javascript
  • Jquery
  • Widgets
  • Menus
  • Theme development
  • WP themes

Recent Posts

Changed function in theme not updating

September 6, 2019

First not being closed properly when the_content() is outputted to the page

September 6, 2019

How can I add meta data to a WordPress user so I can store their check-in and check-out dates and time?

September 6, 2019

Employees check-in, check-out system

September 6, 2019

Easy Digital Downloads (EDD) wallet: shared usage multiple users

September 6, 2019

Recent Comments

  • Frutta Flava on Unable to set $current_user in WordPress from external php page (not under WordPress CMS)
  • Heena on Woocommerce / Polylang Causes Add to Basket button to be disabled
  • Ganapat on WordPress virus, popads script added on wp_footer action
  • طراحی سایت on Remove category icons from WooCommerce shop page?
  • Jennifer Coyle on Change title slug or separator in WordPress
  • Emilio Aranda on All WordPress site hacked on my server code injection [duplicate]
  • haber on Hide/Disable Comment Rating Field Plugin when replying to a comment
  • Muts Ukasha on How to get rid of this "Cannot download the "Shortcodes" extension zip. No working transports found"?
  • eshu on WordPress virus, popads script added on wp_footer action
  • jc on WooCommerce Shipping in DOM TOM issue
WordPress actions

Unable to change footer using wp_footer action hook

I am learning WordPress from a book and while learning about how to use action hooks the author gives the…

September 5, 2019No Comment on Unable to change footer using wp_footer action hook
WordPress actions

enqueuing React script and hooking its target div fails to load script

I am getting a silent failure on the below code as I try to enqueue a static React.js script and…

September 4, 2019No Comment on enqueuing React script and hooking its target div fails to load script
WordPress actions

add_action with associative array

I am trying to get these parameters from the do_action: do_action( ‘woocommerce_simple_auctions_outbid’, array( ‘product_id’ => $product_id , ‘outbiddeduser_id’ => $outbiddeduser,…

September 3, 2019No Comment on add_action with associative array
WordPress actions

How to list all WC products by their attributes values?

i wanted to get some advise on how to list all my inventory attributes values. I have this simple code…

September 2, 2019No Comment on How to list all WC products by their attributes values?
WordPress actions

Instantiating classes through add_action and saving them to user_meta data

In my WordPress.com site I have a form where users can add relationships of different types (coworkers, friends, etc.) and…

September 1, 2019No Comment on Instantiating classes through add_action and saving them to user_meta data
WordPress actions

trying to add extra field using hooks

I am trying to add an extra field on the backend menu of Edit Subscription menu (SUMO Subscription (plugin) ->…

August 26, 2019No Comment on trying to add extra field using hooks
WordPress actions

Use action, filter, or hook to append HTML to WordPress plugin function

I am new to WordPress actions, filters, and hooks, and am wondering if it is possible to use one of…

August 23, 2019No Comment on Use action, filter, or hook to append HTML to WordPress plugin function
WordPress actions

How to load template dynamically on custom URL without creating page?

add_action(‘plugins_loaded’, function() { $url_path = trim(parse_url(add_query_arg([]), PHP_URL_PATH), ‘/’); if ($url_path === ‘free-trial’) { $load = locate_template(‘template-free-trial.php’, TRUE); // exit if…

August 22, 2019No Comment on How to load template dynamically on custom URL without creating page?
WordPress actions

How to show only specific category post by user role without plugin and restrict all other cats

I am using basic post for adding posts. 5 categories exist ( cat_A, cat_B, cat_C, cat_D, cat_E). And I have…

August 17, 2019No Comment on How to show only specific category post by user role without plugin and restrict all other cats
WordPress actions

Use wc_enqueue_js only on specific pages

In my plugin, I’m trying to add inline script using wc_enqueue_js only on the cart page. The rest of the…

August 14, 2019No Comment on Use wc_enqueue_js only on specific pages
WordPress actions

Use wc_enqueue_js only on specific pages – nested add_action

In my plugin, I’m trying to add inline script using wc_enqueue_js only on the cart page. The rest of the…

August 14, 2019No Comment on Use wc_enqueue_js only on specific pages – nested add_action
WordPress actions

Best hook for when a user session ends?

I’m creating a backend feature that calculated user’s login sessions during the past 2 weeks. This is easy enough to…

August 13, 2019No Comment on Best hook for when a user session ends?
WordPress actions

why require – does not load filter

I am using the boilerplate for WordPress plugin : https://wppb.me/ but I don’t know if it’s because of there coding…

August 12, 2019No Comment on why require – does not load filter
WordPress actions

add_action doesn’t work for my function

I’m trying to build a function which run when a member is registering on my site. Here’s the function :…

August 9, 2019No Comment on add_action doesn’t work for my function
WordPress actions

2 list tables under two tabs, bulk actions is not working

I have to list tables extending a backup of WP_List_Table. Each list table is displayed under a tab. The list…

August 1, 2019No Comment on 2 list tables under two tabs, bulk actions is not working
WordPress actions

Check custom User meta before Insert

My goal is to check if my custom user meta field ‘subscribe_to_newsletter’ has been changed. If so i will be…

August 1, 2019No Comment on Check custom User meta before Insert
WordPress actions

add_action(‘init’) not work

my code is add_action(‘init’, ‘user_logged_in’); function user_logged_in(){ if( is_user_logged_in() && is_page(‘login’)){ wp_redirect(home_url()); exit; } } the page slug and name…

August 1, 2019No Comment on add_action(‘init’) not work
WordPress actions

Action init not firing after update WP 5.2.2

I recently updated my website to WP 5.2.2 and ‘init’ action seems not to fire anymore.. I had few VC…

July 28, 2019No Comment on Action init not firing after update WP 5.2.2

Posts navigation

1 2 … 55 Next

Categories

  • WordPress .htaccess
  • WordPress actions
  • WordPress admin
  • WordPress Ajax
  • WordPress Apache
  • WordPress categories
  • WordPress comments
  • WordPress css
  • WordPress custom-field
  • WordPress custom-post-types
  • WordPress custom-taxonomy
  • WordPress customization
  • WordPress filters
  • WordPress functions
  • WordPress html
  • WordPress images
  • WordPress javascript
  • WordPress jquery
  • WordPress loop
  • WordPress menus
  • WordPress mod-rewrite
  • WordPress multisite
  • WordPress Mysql
  • WordPress pages
  • WordPress permalinks
  • WordPress PHP
  • WordPress plugin-development
  • WordPress plugins
  • WordPress posts
  • WordPress redirect
  • WordPress shortcode
  • WordPress theme-development
  • WordPress themes
  • WordPress widgets
  • WordPress Woocommerce
  • WordPress wp-query
Copyright © All rights reserved.
Business Point by Promenade Themes