Browsing Category

Wordpress actions

Cannot deregister a script using wp_dequeue_script

I am trying to get rig of the Disqus script on my front page, but unfortunately I cannot manage how to do this. Here is

Dequeue only stylesheets not wp_add_inline_styles

I have this two line below on my parent theme wp_enqueue_style('theme-dynamic-styles', get_template_directory_uri() . '/custom.css'); wp_add_inline_style('theme-dynamic-styles', $output); this custom css, which I want to dequeue on

How does wordpress call functions hooked to a certain action tag before calling functions hooked to other tags

We know that there is a certain order for the execution of callback functions hooked onto the action tags. How does WordPress decide which action

How does WordPress call functions attached to a certain action hook before calling functions attached to other hooks

We know that there is a certain order for the execution of callback functions attached to action hooks. How does WordPress decide which action should

How does wordpress framework call functions hooked to a certain tag before calling functions hooked to other tags

We know that there is a certain order for the execution of callback functions hooked onto the action tags. How does the framework decide which

How does wordpress call functions hooked to a certain tag before calling functions hooked to other tags

We know that there is a certain order for the execution of callback functions hooked onto the action tags. How does WordPress decide which action

the_post hook is not firing for me

I have a super simple requirement here. I have added a meta field to all posts that will allow a url to be used to

Disable email field on WooCommerce customer account details

Is there a possibility to disable the email field on WooCommerce customer account details? Or Is there a hook or action available to do such

Add two or multiple functions in WordPress Post or Page

I have a website that uses WordPress. I would like to add in a post or a page a login code for an external database,

Ajax not working es expected (Returns 0)

I’m trying to “POST” data from my Form through ajax to a mysql database. This code is hooked to the “after_setup_theme” action: add_action("wp_ajax_ajax_anmeldung", "ajax_anmeldung"); add_action("wp_ajax_nopriv_ajax_anmeldung",

Is there a hook to Intercept al urls from a webpage and redirect to a page

After a long search through all actions and filters. I was unable to find a url intercepting hook. To put in the function.php in my

When to use add_action when registering/enqueuing scripts

When should you use add_action to enqueue or register a script, vs just using wp_register_script and/or wp_enqueue_script? In other words, both example 1 and example

How to remove the "+Add Category" button from the Category metabox?

I would like to disable the “+Add Category Button” under the Category metabox so that anyone creating a post has to choose only from the

Update post meta within save_post action

I’m currently trying to update a post’s meta value within the save_post action. The problem with this is that it gets overwritten immediately. I’ve been

WordPress Hook Repeat Problem

I have a little problem in using wordpress hook. I would like to send an email or some business logic like sending post data to

Pass parameters to function through an action

I’m trying to pass the value of a variable into do_action and then use it in the resulting function but it’s not working. The action

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