runcommand / hook Goto Github PK
View Code? Open in Web Editor NEWList callbacks registered to a given action or filter
Home Page: https://runcommand.io/wp/hook/
List callbacks registered to a given action or filter
Home Page: https://runcommand.io/wp/hook/
vagrant@vvv:/srv/www/test-site$ wp hook init
Error: Invalid value specified for positional arg.
By inspecting the global at the end of the execution, as we're doing now, we're potentially missing out on some callbacks.
After updating to WP-CLI 0.23.0
wp package install runcommand/hook
Installing runcommand/hook (dev-master)
Updating /home/vagrant/.wp-cli/packages/composer.json to require the package...
Using Composer to install the package...
---
Loading composer repositories with package information
Updating dependencies
Analyzed 191 packages to resolve dependencies
Analyzed 64 rules to resolve dependencies
- Installing package
Generating autoload files
---
Then, running wp hook
Error: 'hook' is not a registered wp command. See 'wp help'
wp cli version 0.23.1
This happens when I have WP_DEBUG
defined in the site's wp-config. If I comment it out there, then no notice is reported.
vagrant@vvv:/srv/www/test-site$ wp hook wp_enqueue_scripts
PHP Notice: Constant WP_DEBUG already defined in phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(792) : eval()'d code on line 84
PHP Stack trace:
PHP 1. {main}() /usr/local/bin/wp:0
PHP 2. include() /usr/local/bin/wp:4
PHP 3. include() phar:///usr/local/bin/wp/php/boot-phar.php:5
PHP 4. WP_CLI\Runner->start() phar:///usr/local/bin/wp/php/wp-cli.php:21
PHP 5. WP_CLI\Runner->load_wordpress() phar:///usr/local/bin/wp/php/WP_CLI/Runner.php:755
PHP 6. eval() phar:///usr/local/bin/wp/php/WP_CLI/Runner.php:792
PHP 7. define('WP_DEBUG', FALSE) phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(792) : eval()'d code:84
Error: Invalid value specified for positional arg.
Could you add .editorconfig
to aid reading code here on GitHub? (tab width=4)
https://github.com/wp-cli/wp-cli/blob/master/.editorconfig
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.