When to use actions and when to use filters
I’m trying to understand where to use filters and where to use actions. Suppose I have a query in a plugin, which later … Read more
I’m trying to understand where to use filters and where to use actions. Suppose I have a query in a plugin, which later … Read more
Based on my understanding of hooks, you create a hook, by doing do_action(‘hook_name’); then add something to said hook and call the method … Read more
I need to write code before user can enter username and password. So, I have code written just after the following line in … Read more
As far as I know using Actions and Filters hooks is the best approach for developing on WordPress. I have just to ask … Read more
Is it at all possible to get a user’s ID in a function right at the point of log out? I tried to … Read more
Lets say we have a do_action like this: do_action(‘some_action’); Doesn’t this mean that there has to be a some_action() function somewhere in the … Read more
I am trying to add some code to the head (namely a block of tracking script) via a plugin I am making. The … Read more
I’ve added an action to my functions.php file that forces a plugin (Content Scheduler) to act on posts, even when it wasn’t explicitly … Read more
I’m trying to use the add_action() hook to run a custom function, but am struggling with the post status. I originally tried using: … Read more
Scenario: It is common that a JS dependency is bundled with a style file to work properly (just think about your favorite slideshow … Read more