wp_error_added

动作钩子


do_action( 'wp_error_added', $code, $message, $data, $this )
参数
  • (string|int)
    $code
    Error code.
    Required:
  • (string)
    $message
    Error message.
    Required:
  • (mixed)
    $data
    Error data. Might be empty.
    Required:
  • (WP_Error)
    $wp_error
    The WP_Error object.
    Required:
定义位置
  • wp-includes/class-wp-error.php
    , line 207
引入
5.6.0
弃用

Fires when an error is added to a WP_Error object.

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