GB_Meta::register
Register meta key
Signature
public function register(string
$meta_type,
string
$meta_key,
string|array
$sanitize_callback,
[string|array
$auth_callback = NULL] )
Parameters
$meta_type
— string
Type of meta$meta_key
— string
Meta key$sanitize_callback
— object
A function or method to call when sanitizing the value of $meta_key.$auth_callback
— object
Optional. A function or method to call when performing edit_*_meta, add_*_meta, and delete_*_meta capability checks.
Violations
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
946 | 12 | error | Visibility must be declared on method "register" |
948 | 9 | error | Inline control structures are not allowed |
952 | 13 | error | Inline control structures are not allowed |
954 | 13 | error | Expected 1 space after ELSE keyword; newline found |
954 | 13 | error | Inline control structures are not allowed |
958 | 9 | error | Inline control structures are not allowed |