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:

functions.php
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.

  1. WooCommerce icon WooCommerce7+ million installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/wc-deprecated-functions.php:122
  2. The SEO Framework icon The SEO Framework200,000+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) inc/classes/internal/debug.class.php:148
  3. Everest Forms icon Everest Forms90,000+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/evf-deprecated-functions.php:109
  4. User Registration & Membership icon User Registration & Membership50,000+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/functions-ur-core.php:719
  5. Jetpack CRM icon Jetpack CRM30,000+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/ZeroBSCRM.GeneralFuncs.php:26
  6. WP Travel Engine icon WP Travel Engine20,000+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/helpers/helpers.php:617
  7. GeoDirectory icon GeoDirectory10,000+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/core-functions.php:68
  8. UsersWP icon UsersWP10,000+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/template-functions.php:143
  9. Masteriyo LMS icon Masteriyo LMS6,000+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/Helper/core.php:3444
  10. Payment forms, Buy now buttons, and Invoicing System icon Payment forms, Buy now buttons, and Invoicing System5,000+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/error-functions.php:182
  11. MAS Videos icon MAS Videos1,000+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/masvideos-deprecated-functions.php:111
  12. CBX Bookmark & Favorite icon CBX Bookmark & Favorite1,000+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/Helpers/cbxwpbookmark-functions.php:46
  13. CBX Map for Google Map & OpenStreetMap icon CBX Map for Google Map & OpenStreetMap800+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/Functions/cbxgooglemap-functions.php:129
  14. XL NMI Gateway for WooCommerce icon 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
  15. CBX User Online & Last Login icon CBX User Online & Last Login700+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/cbxuseronline-functions.php:191
  16. RestaurantPress icon RestaurantPress600+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/rp-deprecated-functions.php:113
  17. CBX Changelog & Release Note icon CBX Changelog & Release Note200+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/Helpers/cbxchangelog-functions.php:318
  18. Kirim.Email Form Integration icon Kirim.Email Form Integration100+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/kemail-core-function.php:11
  19. Treweler Map Builder icon Treweler Map Builder80+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/twer-core-functions.php:2457
  20. CBX Petition icon CBX Petition70+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/Helpers/petition_functions.php:427
  21. Comfort Email SMTP, Logger & Email Api icon Comfort Email SMTP, Logger & Email Api60+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/Helpers/comfortsmtp-functions.php:46
  22. CBX Poll icon CBX Poll50+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/Helpers/cbxpoll-functions.php:144
  23. CBX Tour icon CBX Tour40+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/Functions/cbxtakeatour-functions.php:133
  24. Workshop Butler icon Workshop Butler20+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/wsb-core-functions.php:315
  25. Online Restaurant Reservation icon Online Restaurant Reservation20+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/orr-deprecated-functions.php:113
  26. Miraget B2B Leads generation icon Miraget B2B Leads generation10+ installs do_action( 'doing_it_wrong_run', __FUNCTION__, $message, '1.0' ) leadsgen-master.php:64
  27. Music Press Member icon Music Press Member10+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/music-press-member-core-functions.php:10
  28. Subscriptions & Recurring Payments for WooCommerce icon Subscriptions & Recurring Payments for WooCommerce10+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) inc/inependent-functions/awc-deprecated-functions.php:26
  29. Ultimo Woocommerce Email Plugin icon Ultimo Woocommerce Email Plugin10+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) tools/woocommerce/class-sv-wc-plugin-compatibility.php:73
  30. CBX Multi Criteria Rating & Review icon CBX Multi Criteria Rating & Review10+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/Helpers/cbxmcratingreview-functions.php:705
  31. CBX 5 Star Rating & Review icon CBX 5 Star Rating & Review10+ installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/Helpers/cbxscratingreview-functions.php:518
  32. Package Update Server for WooCommerce icon Package Update Server for WooCommerceFewer than 10 installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/function/functions-notice.php:27
  33. Token Vendor for WooCommerce icon Token Vendor for WooCommerceFewer than 10 installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/function/functions-notice.php:27
  34. Outpace SEO icon Outpace SEOFewer than 10 installs do_action( 'doing_it_wrong_run', $function, $message, $version ) includes/class-outpace-seo-functions.php:41
  35. Onlim Livechat and Chatbot Integration icon 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.