$enabled_wp_seo
$enabled_wp_seo : boolean
Yoast SEO is enabled return true else return null.
Class MainWP_Utility
instance() : \MainWP\Dashboard\MainWP_Utility
Method instance()
Create public static instance.
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 $arr, 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 | $arr | 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.
hook_verify_ping_nonce(boolean $input_value, string $nonce = '', mixed $siteid = false) : mixed
Method hook_verify_ping_nonce()
Verify nonce without session and user id.
boolean | $input_value | Boolean value, it should always be FALSE. |
string | $nonce | Nonce to verify. |
mixed | $siteid | Site ID. |
If verified return 1 or 2, if not return false.
verify_site_nonce(string $nonce, mixed $action = -1, mixed $siteid) : mixed
Method verify_site_nonce()
Verify nonce without session and user id.
string | $nonce | Nonce to verify. |
mixed | $action | Action to perform. |
mixed | $siteid | Site ID. |
If verified return 1 or 2, if not return false.
get_set_deactivated_licenses_alerted(string $slug, boolean $time_value = false, string $act = 'get') : array
Method get_set_deactivated_licenses_alerted().
string | $slug | Extension slug. |
boolean | $time_value | Time value. |
string | $act | get/set value. |
$result result array.