This is my function $enable = false; //if false is provided then the action should run and remove the breadcrumbs…
adding an action inside if condition not working
This is my function $enable = false; //if false is provided then the action should run and remove the breadcrumbs…
get_permalink() is not working after published
I created a plugin that, when updated, gets a link to a published record and sends it to the API.…
Flush Rewrite Rules on init or rest_api_init?
if I’m using the REST API to create endpoints in my plugin, should I be flushing rewrite rules on init…
Overrided parent function in child theme not load next content
So I want to change top header line display. To do that I’m trying to override parent theme function with…
Capture WooCommerce Smart Coupons in Zapier
I’m using WooCommerce Smart Coupons to automatically generate coupon codes whenever a specific SKU is purchased. This coupon code will…
Woocommerce add a text field if specific option is selected
I need to make active/visible a new filed before ‘Add to cart’ button, only if user select a specific option.…
wp_update_nav_menu also triggers post_updated
I have built a little script that indicates if one specific element should be taken from a cache instead of…
Hook into a custom post type update to only allow 1 term per taxonomy.
Here’s the scenario that we have: We have a custom post type of “TV Extra”, and then an infinite number…
Trigger action via button
I am using wordpress 4.9.8 and PHP 7.1.8 I have added a button to the new post screen: I am…
Remove action from plugin
I’m trying to remove an action in edit_user_profile from a plugin. But I don’t know how to do, This is…
Differentiate between woocommerce_payment_complete triggered by user action and admin action
The woocommerce_payment_complete hook is triggered when an order status is marked as complete. This can happen in 2 ways The…
Removing an Action in a Parent theme from a child theme
I am currently working on a website, which has the following Folder Directories: parent_theme/inc/functions/tgm-functions.php parent_theme/inc/plugins/class-tgm-plugin-activation.php I would like to override…
which hook do I use to present a message to the user when he adds an image in a post by a URL
I will make a code that when the user tries to put an image via URL without the HTTPS will…
Add filter “body_class” within an action “wp”
It is a good practice to add filters within a actions, for example, I need to add a CSS class…
I don’t understand why I need a lower priority to remove an action with a higher priority to make it work
In the section about Priority of the WordPress documentation is stated: A function with a priority of 11 will run…