Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
1 answer
405 views

How to prevent action in ajax request, when in admin side?

I have a plugin that hides certain posts in the frontend. For this to be consistent, I need posts to also be hidden in searches and AJAX searches (needs to work with any theme and search). To make ...
Mike J's user avatar
  • 31
1 vote
1 answer
4k views

Automatically add attributes to woocommerce product?

I'm trying to make WooCommerce automatically add some attributes to a product when it's created. I'm trying to find the right hook to start with, so far the only one that seems correct is '...
meds's user avatar
  • 111
1 vote
1 answer
217 views

How to check current user before all actions and filters?

I am working on a plugin with 50+ actions and filters. All actions and filters only apply to users with a specific user meta (b2b). I want to check this user meta before everything How can I do this? ...
Stefan S's user avatar
1 vote
1 answer
45 views

CampaignMonitor for WooCommerce - Move subscribe button [closed]

So I need to move the checkbox provided by CampaignMonitor for WooCommerce to a different part of the checkout screen. I've already managed to copy it to the right place via add_action( '...
KeironLowe's user avatar
0 votes
1 answer
391 views

WooCommerce: after install hook

There is some hook that is triggered after WooCommerce Install (I mean the WooCommerce Wizard, not the plugin installation)? I didn't found a hook to do this and the Wizard Class (...
Lucas Vendramini's user avatar
0 votes
1 answer
2k views

How to remove products-links after the product title using remove_action

I'm trying to remove the navigation between products that appears right after the product title in my products pages. The navigation is set in the woocommerce.php file of my theme: /** * Class for ...
Aerendir's user avatar
  • 318
0 votes
1 answer
102 views

{status}_{post_type} does not run correctly?

I used the hook {status}_{post_type} from the docs here. In the docs it said: action will execute when a post of type {post_type} transitions to {status} from any other status. Here is my code: ...
Hà Link's user avatar
  • 105
0 votes
0 answers
1k views

Change hook to add_action in a plugin class

<?php namespace wp_gdpr_wc\controller; use wp_gdpr\lib\Gdpr_Container; use wp_gdpr_wc\lib\Gdpr_Wc_Translation; use wp_gdpr_wc\model\Wc_Model; class Controller_Wc { const REQUEST_TYPE = 3; ...
Alex's user avatar
  • 309
0 votes
1 answer
307 views

Help needed with woocommerce (wc stripe) filter

WC Stripe has an option where you can set it to 'capture immediately' or leave it unchecked for authorize payment only. I have left it checked by default, but there is a specific product category, ...
user3137901's user avatar