WordPress action hook · part of WordPress core
doing_it_wrong_run
A WordPress core action that 35 plugins also fire themselves, running on 7.4M+ sites between them.
“Fires when the given function is being used incorrectly.”
How to use doing_it_wrong_run
It's an action: your callback runs at that point and receives 3 arguments. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'doing_it_wrong_run', function( $function, $message, $version ) {
// Your code runs here.
}, 10, 3 );Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
35 plugins that fire doing_it_wrong_run
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/wc-deprecated-functions.php:122 -
The SEO Framework200,000+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )inc/classes/internal/debug.class.php:148 -
Everest Forms90,000+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/evf-deprecated-functions.php:109 -
User Registration & Membership50,000+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/functions-ur-core.php:719 -
Jetpack CRM30,000+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/ZeroBSCRM.GeneralFuncs.php:26 -
WP Travel Engine20,000+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/helpers/helpers.php:617 -
GeoDirectory10,000+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/core-functions.php:68 -
UsersWP10,000+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/template-functions.php:143 -
Masteriyo LMS6,000+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/Helper/core.php:3444 -
Payment forms, Buy now buttons, and Invoicing System5,000+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/error-functions.php:182 -
MAS Videos1,000+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/masvideos-deprecated-functions.php:111 -
CBX Bookmark & Favorite1,000+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/Helpers/cbxwpbookmark-functions.php:46 -
CBX Map for Google Map & OpenStreetMap800+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/Functions/cbxgooglemap-functions.php:129 -
XL NMI Gateway for WooCommerce800+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )lib/skyverge/woocommerce/class-sv-wc-plugin-compatibility.php:93 -
CBX User Online & Last Login700+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/cbxuseronline-functions.php:191 -
RestaurantPress600+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/rp-deprecated-functions.php:113 -
CBX Changelog & Release Note200+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/Helpers/cbxchangelog-functions.php:318 -
Kirim.Email Form Integration100+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/kemail-core-function.php:11 -
Treweler Map Builder80+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/twer-core-functions.php:2457 -
CBX Petition70+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/Helpers/petition_functions.php:427 -
Comfort Email SMTP, Logger & Email Api60+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/Helpers/comfortsmtp-functions.php:46 -
CBX Poll50+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/Helpers/cbxpoll-functions.php:144 -
CBX Tour40+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/Functions/cbxtakeatour-functions.php:133 -
Workshop Butler20+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/wsb-core-functions.php:315 -
Online Restaurant Reservation20+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/orr-deprecated-functions.php:113 -
Miraget B2B Leads generation10+ installs
do_action( 'doing_it_wrong_run', __FUNCTION__, $message, '1.0' )leadsgen-master.php:64 -
Music Press Member10+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/music-press-member-core-functions.php:10 -
Subscriptions & Recurring Payments for WooCommerce10+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )inc/inependent-functions/awc-deprecated-functions.php:26 -
Ultimo Woocommerce Email Plugin10+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )tools/woocommerce/class-sv-wc-plugin-compatibility.php:73 -
CBX Multi Criteria Rating & Review10+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/Helpers/cbxmcratingreview-functions.php:705 -
CBX 5 Star Rating & Review10+ installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/Helpers/cbxscratingreview-functions.php:518 -
Package Update Server for WooCommerceFewer than 10 installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/function/functions-notice.php:27 -
Token Vendor for WooCommerceFewer than 10 installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/function/functions-notice.php:27 -
Outpace SEOFewer than 10 installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/class-outpace-seo-functions.php:41 -
Onlim Livechat and Chatbot IntegrationFewer than 10 installs
do_action( 'doing_it_wrong_run', $function, $message, $version )includes/onlim-functions.php:37
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.