$enabled_wp_seo
$enabled_wp_seo : boolean
Yoast SEO is enabled return true else return null.
Class MainWP_Utility
ctype_digit(mixed $str) : boolean
Method ctype_digit()
Returns TRUE if every character in the string text is a decimal digit, FALSE otherwise.
mixed | $str | String to check. |
Returns TRUE if every character in the string text is a decimal digit, FALSE otherwise.
sortmulti(mixed $array, mixed $index, mixed $order, boolean $natsort = false, boolean $case_sensitive = false) : array
Method sortmulti()
Sort the given array, Acending, Decending or by Natural Order.
mixed | $array | Array to sort. |
mixed | $index | Index of array. |
mixed | $order | Acending or Decending order. |
boolean | $natsort | Sort an array using a "natural order" algorithm. Default: false. |
boolean | $case_sensitive | If case sensitive return true else return false. Default: false. |
$sorted Return the sorted array.
human_filesize(mixed $bytes, integer $decimals = 2) : string
Method human_filesize()
Convert to human readable file size format, (B|kB|MB|GB|TB|PB|EB|ZB|YB).
mixed | $bytes | File in bytes. |
integer | $decimals | Number of decimals to output. |
Human readable file size.
update_option(mixed $option_name, mixed $option_value) : \MainWP\Dashboard\(boolean)
Method update_option()
Update option.
mixed | $option_name | Option name. |
mixed | $option_value | Option value. |
False if value was not updated and true if value was updated.
update_user_option(mixed $option_name, mixed $option_value) : \MainWP\Dashboard\(boolean)
Method update_user_option()
Update option.
mixed | $option_name | Option name. |
mixed | $option_value | Option value. |
False if value was not updated and true if value was updated.
esc_content(mixed $content, string $type = 'note', mixed $more_allowed = array()) : string
Method esc_content()
Escape content, allowed content (a,href,title,br,em,strong,p,hr,ul,ol,li,h1,h2 ... ).
mixed | $content | Content to escape. |
string | $type | Type of content. Default = note. |
mixed | $more_allowed | input allowed tags - options. |
Filtered content containing only the allowed HTML.
esc_mixed_content(mixed $data, string $depth, mixed $more_allowed = array()) : string
Method esc_mixed_content()
Escape mixed content, allowed content (a,href,title,br,em,strong,p,hr,ul,ol,li,h1,h2 ... ).
mixed | $data | data to escape. |
string | $depth | Maximum depth to walk through $data. Must be greater than 0. |
mixed | $more_allowed | input allowed tags - options. |
Excetpion message.
Filtered content containing only the allowed HTML.