shake_error_codes

過濾鉤子
apply_filters( 'shake_error_codes', $shake_error_codes )
引數
  • (string[]) $shake_error_codes Error codes that shake the login form.
    Required:
定義位置
相關勾子
wp_error_addedthe_editor_contentms_user_row_actionspage_row_actionsuser_row_actions
相關方法
has_shortcodeshortcode_attsis_errorsettings_errorsstrip_shortcodesdo_shortcode
引入
3.0.0
棄用
-

shake_error_codes是一個錯誤程式碼陣列,在WordPress中用來搖動表單元素以響應一個錯誤。例如,如果一個表單輸入有錯誤,相應的表單元素就會晃動以向使用者表示錯誤。

過濾錯誤程式碼陣列,以修改登入表單。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$shake_error_codes = apply_filters( 'shake_error_codes', $shake_error_codes );
$shake_error_codes = apply_filters( 'shake_error_codes', $shake_error_codes );
$shake_error_codes = apply_filters( 'shake_error_codes', $shake_error_codes );

常見問題

FAQs
檢視更多 >