wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_error_added › WordPress Action Hooks

Since5.6.0
Deprecatedn/a
do_action( 'wp_error_added', $code, $message, $data, $this )
Parameters: (4)
  • (string|int) $code Error code.
    Required: Yes
  • (string) $message Error message.
    Required: Yes
  • (mixed) $data Error data. Might be empty.
    Required: Yes
  • (WP_Error) $wp_error The WP_Error object.
    Required: Yes
Defined at:
Codex:

Fires when an error is added to a WP_Error object.





Source

do_action( 'wp_error_added', $code, $message, $data, $this );