Šī spraudnis nav atjaunināts vairāk kā divus gadus. Varbūt, tas vairs netiek uzturēts, nesaņemt atbalstu un tam var būt saderības problēmas ar jaunākām WordPress versijām.

Digthis Show Action Hook

Apraksts

Ever had that feeling where you hook into and action or a filter and for some reason your code isn’t working? well 9 / 10 the reason is your hook is in a lower priority(in case of filters) and it can simply be determined by searching through the code for that particular filer? Seems, a tedious amount of time doesn’t it? I’ve created a plugin for just that reason but it lists all hooks and filters and allows you to search through them to see whats being hooked.

To do this i’ve used a helper class from Query Monitor where I initially saw this being used, i’ve extended it to be more user friendly.

Ekrānuzņēmumi

Uzstādīšana

  1. Upload the plugin files to the /wp-content/plugins/digthis-action-filters directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Go to “View Filters” from the menu in the front end or alternatively use the “Show Filters” button to trigger a popup on the front end
  4. Type the name of “Action Hook” or “Filter Hook” you want to see and it will display functions attached to those. ex: init, the_content etc

Atsauksmes

16 janvāris, 2017
Weather your working for a client, or developing your products. We cannot deny that hooks are an integral part of WordPress. And at the same time hooks can also make a developers life a living hell, when they try to figure it out the priorities, functions names and other hook related issues. This is where this plugin comes to the rescue, not only does it help you identify the function name, it also shows you where in which file, the function is located. This give you the ability to debug hooks issues at a moments notice. Its like a light saber for a jedi 🙂 I use it in almost all of my works Kudos for to the developer for building this plugin.
Lasīt 3 atsauksmes

Autori un izstrādātāji

“Digthis Show Action Hook” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.

Līdzdalībnieki

Tulkot “Digthis Show Action Hook&#8221 savā valodā.

Vai jūs interesē attīstība?

Pārlūkojiet kodu, apmeklējiet SVN krātuvi vai abonējiet attīstības žurnālu, ko izveidojis RSS.

Izmaiņu žurnāls

1.0.1

Do not load scripts if user is not logged in

1.0.0

First Version