Linked Questions

2 votes
2 answers

How to list the Hooks and order of execution in current loading page? [duplicate]

I need to know the list of hooks that are called in the current page . How to identify the priority assigned to the action and filters in the action . If i want to remove the default action on word-...
Babu's user avatar
  • 177
0 votes
2 answers

Which hook runs first(init,... or ???) [duplicate]

For example,any "naked" code, i.e.: IF ($_POST) then...., runs directly, before any WP action. for example, this runs later (even with point 1): add_action('init','my_function',1); I want to ...
T.Todua's user avatar
  • 5,810
95 votes
3 answers

Between functions.php (theme), widgets, and plugins, which is loaded first?

Customer asks if a specific carousel plugin he uses can be widgetized. That means I should create a widget inside functions.php which calls the plugin's function. That means that the plugin's code has ...
pixeline's user avatar
  • 2,857
23 votes
3 answers

What is the very earliest action hook you can call?

After the solution to this question was to get a function to launch BEFORE the init action is fired by taking the sequence out of its function, it got me thinking, is there any earlier in the WP load ...
Mild Fuzz's user avatar
  • 4,180
2 votes
4 answers

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 be prioritized while executing all the hooks?
IAmDhar's user avatar
  • 96
3 votes
1 answer

Get a list of ALL Statuses both registered and built-in

I have been searching high and low for a way to get ALL statuses, the built-ins, and the customs registered. But i have only been able to retrieve a few of other registered statuses of an installed ...
samjco-com's user avatar
2 votes
3 answers

Can wp_script_is used in pluginA check if a script is being enqueued/registered from pluginB?

Can wp_script_is used in pluginA check if a script is being enqueued/registered from pluginB? I have two plugins both of which use Angular. One plugin (pluginA) has angular.min.js being loaded ...
aberkow's user avatar
  • 240
0 votes
1 answer

How to use apply_filters() inside a plugin class?

I'd like themes to be able to alter a default array of data inside a plugin class. It's currently set up like: namespace Example; class Example_Class { private $stuff; public function ...
Shoelaced's user avatar
  • 369
0 votes
1 answer

How to create a custom taxonomy using a shortcode?

I want to create a custom taxonomy using a shortcode. I don't want to use any plugin. I use this code in my plugin: add_shortcode('taxnomy','project_taxonomy_init'); add_filter( 'widget_text', '...
Hafiz Usman aftab's user avatar
0 votes
2 answers

Removing parent theme action on pluggable function not working

I'm trying to remove a parent theme's add_action call to a pluggable function, but can't get it to work by calling remove_action() - I have to redeclare the function and just leave it empty. Is this ...
Michelle's user avatar
  • 3,448
1 vote
1 answer

Is there an action like 'after_register_custom_post_type'?

I'm writing a small plugin for Visual Composer. I need to list all custom post types but I don't know when to call the query to fetch all post types. My plugin gets initialized by after_setup_theme, ...
Slevin's user avatar
  • 325
1 vote
1 answer

Pass $this to function nested in another public function of the same class

I'm building a plugin using the WordPress Plugin Boilerplate by DevinVinson. I'm adding a public shortcode function for wich I will need some resources (js and css), I want to enqueue scripts (that ...
bluantinoo's user avatar
0 votes
1 answer

How do I dequeue js/css at the last possible moment?

I'm trying to dequeue the font-awesome stylesheet included with the ninja forms plugin (because I manually include the latest FA via a CDN). I did this: add_action('wp_enqueue_scripts', function () {...
lonix's user avatar
  • 301
0 votes
2 answers

How can I add a prefix to titles displayed in sidebar using function.php?

What is the condition / hook to filter the titles displayed in the sidebar? Edit: I actually meant posts titles. Like if there's a widget that displays 5 most recent posts, I want to filter the ...
Dany M's user avatar
  • 13