__
__n
__return_empty_array
__return_false
__return_null
__return_true
__return_zero
_cleanup_header_comment
_deep_replace
_e
_make_email_clickable_cb
_make_url_clickable_cb
_make_web_ftp_clickable_cb
_split_str_by_whitespace
_wp_specialchars
_wp_timezone_choice_usort_callback
_wptexturize_pushpop_element
absint
add_query_arg
apache_mod_loaded
attribute_escape
backpress_add_option
backpress_convert_object
backpress_delete_option
backpress_delete_transient
backpress_die
backpress_get_option
backpress_get_transient
backpress_gmt_strtotime
backpress_set_cookie
backpress_set_transient
backpress_update_option
backslashit
build_query
cache_javascript_headers
clean_pre
clean_url
current_time
ent2ncr
esc_attr
esc_html
esc_js
esc_sql
esc_textarea
esc_url
esc_url_raw
force_ssl_admin
force_ssl_login
format_to_edit
get_status_header_desc
get_translations
is_email
is_lighttpd_before_150
is_serialized
is_serialized_string
is_ssl
is_wp_error
js_escape
like_escape
load_textdomain
load_translations
make_clickable
maybe_serialize
maybe_unserialize
nocache_headers
rawurlencode_deep
remove_accents
remove_query_arg
sanitize_email
sanitize_key
sanitize_mime_type
sanitize_text_field
sanitize_title
sanitize_title_with_dashes
sanitize_user
seems_utf8
status_header
stripslashes_deep
trailingslashit
untrailingslashit
urlencode_deep
utf8_uri_encode
validate_file
wp_basename
wp_check_invalid_utf8
wp_clone
wp_deregister_script
wp_deregister_style
wp_enqueue_script
wp_enqueue_style
wp_get_nocache_headers
wp_html_excerpt
wp_localize_script
wp_parse_args
wp_parse_str
wp_pre_kses_less_than
wp_pre_kses_less_than_callback
wp_print_scripts
wp_print_styles
wp_register_script
wp_register_style
wp_remote_fopen
wp_script_is
wp_specialchars
wp_specialchars_decode
wp_strip_all_tags
wp_style_is
wp_timezone_choice
wp_timezone_override_offset
wp_timezone_supported
wptexturize
zeroise
ARRAY_A
ARRAY_K
ARRAY_N
BPDB__CONNECT_ERROR_MESSAGE
BPDB__DB_VERSION_ERROR
BPDB__ERROR_HTML
BPDB__ERROR_STRING
BPDB__PHP_EXTENSION_MISSING
BPDB__SELECT_ERROR_MESSAGE
BP_LOG_ALL
BP_LOG_DEBUG
BP_LOG_ERROR
BP_LOG_FAIL
BP_LOG_NONE
BP_LOG_NOTICE
BP_LOG_WARNING
EZSQL_VERSION
OBJECT
OBJECT_K
SAVEQUERIES
__n($singular, $plural, $count, $domain = 'default'
)
__return_empty_array() : array
Useful for returning an empty array to filters easily.
package | BackPress |
---|---|
since | 3.0.0 |
see |
array
Empty array__return_false() : boolean
Useful for returning false to filters easily.
package | BackPress |
---|---|
since | 3.0.0 |
see |
boolean
false__return_null() : null
__return_true() : boolean
__return_zero() : integer
_deep_replace(string|array $search, string $subject) : string
Repeats the replacement operation until it no longer replaces anything so as to remove "nested" values e.g. $subject = '%0%0%0DDD', $search ='%0D', $result ='' rather than the '%0%0DD' that str_replace would return
package | BackPress |
---|---|
since | 2.8.1 |
access | private |
string
array
string
string
The processed string_make_email_clickable_cb(array $matches) : string
This function was backported from 2.5.0 to 2.3.2. Regex callback for {@link make_clickable()}.
package | BackPress |
---|---|
since | 2.3.2 |
access | private |
array
Single Regex Match.
string
HTML A element with email address._make_url_clickable_cb(array $matches) : string
This function was backported from 2.5.0 to 2.3.2. Regex callback for {@link make_clickable()}.
package | BackPress |
---|---|
since | 2.3.2 |
access | private |
array
Single Regex Match.
string
HTML A element with URI address._make_web_ftp_clickable_cb(array $matches) : string
This function was backported from 2.5.0 to 2.3.2. Regex callback for {@link make_clickable()}.
package | BackPress |
---|---|
since | 2.3.2 |
access | private |
array
Single Regex Match.
string
HTML A element with URL address._split_str_by_whitespace(string $string, integer $goal) : array
The length of each returned chunk is as close to the specified length goal as possible, with the caveat that each chunk includes its trailing delimiter. Chunks longer than the goal are guaranteed to not have any inner whitespace.
Joining the returned chunks with empty delimiters reconstructs the input string losslessly.
Input string must have no null characters (or eventual transformations on output chunks must not care about null characters)
_split_str_by_whitespace( "1234 67890 1234 67890a cd 1234 890 123456789 1234567890a 45678 1 3 5 7 90 ", 10 ) ==
array (
0 => '1234 67890 ', // 11 characters: Perfect split
1 => '1234 ', // 5 characters: '1234 67890a' was too long
2 => '67890a cd ', // 10 characters: '67890a cd 1234' was too long
3 => '1234 890 ', // 11 characters: Perfect split
4 => '123456789 ', // 10 characters: '123456789 1234567890a' was too long
5 => '1234567890a ', // 12 characters: Too long, but no inner whitespace on which to split
6 => ' 45678 ', // 11 characters: Perfect split
7 => '1 3 5 7 9', // 9 characters: End of $string
);
package | BackPress |
---|---|
since | 3.4.0 |
access | private |
string
The string to split
integer
The desired chunk length.
array
Numeric array of chunks._wp_specialchars(string $string, mixed $quote_style= ENT_NOQUOTES
, string $charset= false
, boolean $double_encode= false
) : string
Specifically deals with: &, <, >, ", and '.
$quote_style can be set to ENT_COMPAT to encode " to ", or ENT_QUOTES to do both. Default is ENT_NOQUOTES where no quotes are encoded.
package | BackPress |
---|---|
since | 1.2.2 |
string
The text which is to be encoded.
mixed
Optional. Converts double quotes if set to ENT_COMPAT, both single and double if set to ENT_QUOTES or none if set to ENT_NOQUOTES. Also compatible with old values; converting single quotes if set to 'single', double if set to 'double' or both if otherwise set. Default is ENT_NOQUOTES.
string
Optional. The character encoding of the string. Default is false.
boolean
Optional. Whether to encode existing html entities. Default is false.
string
The encoded text with HTML entities._wp_timezone_choice_usort_callback($a, $b)
_wptexturize_pushpop_element(string $text, array $stack, string $disabled_elements, string $opening= '<'
, $closing= '>'
) : object
package | BackPress |
---|---|
access | private |
since | 2.9.0 |
string
Text to check. First character is assumed to be $opening
array
Array used as stack of opened tag elements
string
Tags to match against formatted as regexp sub-expression
string
string
Tag opening character, assumed to be 1 character long
object
absint(mixed $maybeint) : integer
package | BackPress |
---|---|
since | 2.5.0 |
mixed
Data you wish to have convered to an nonnegative integer
integer
An nonnegative integeradd_query_arg() : string
You can rebuild the URL and append a new query variable to the URL query by using this function. You can also retrieve the full URL with query data.
Adding a single key & value or an associative array. Setting a key value to emptystring removes the key. Omitting oldquery_or_uri uses the $_SERVER value.
package | BackPress |
---|---|
since | 1.5.0 |
string
New URL query string.apache_mod_loaded(string $mod, boolean $default = false
) : boolean
package | BackPress |
---|---|
since | 2.5.0 |
string
e.g. mod_rewrite
boolean
The default return value if the module is not found
boolean
attribute_escape(string $text) : string
backpress_add_option($option, $value)
backpress_convert_object($object, $output)
backpress_delete_transient($transient)
backpress_die(string $message, string $title= ''
, string|array $args= array()
)
This function calls the die() PHP function. The difference is that a message in HTML will be displayed to the user. It is recommended to use this function only when the execution should not continue any further. It is not recommended to call this function very often and normally you should try to handle as many errors as possible silently.
package | BackPress |
---|
string
Error message.
string
Error title.
string
array
Optional arguments to control behaviour.
backpress_get_transient($transient)
backpress_set_transient($transient, $value, $expiration = 0
)
backpress_update_option($option, $value)
backslashit(string $string) : string
package | BackPress |
---|---|
since | 0.71 |
string
Value to which backslashes will be added.
string
String with backslashes inserted.build_query(array $data) : string
This is a convenient function for easily building url queries. It sets the separator to '&' and uses _http_build_query() function.
package | BackPress |
---|---|
see | Used to build the query |
link | more on what http_build_query() does. |
since | 2.3.0 |
array
URL-encode key/value pairs.
string
URL encoded stringcache_javascript_headers()
package | BackPress |
---|---|
since | 2.1.0 |
clean_pre(array|string $matches) : string
Ensures that the contents of a <
>...<> HTML block are not converted into paragraphs or line-breaks.
package | BackPress |
---|---|
since | 1.2.0 |
array
string
The array or string
string
The pre block without paragraph/line-break conversion.clean_url(string $url, array $protocols= null
, string $context= 'display'
) : string
A number of characters are removed from the URL. If the URL is for displaying (the default behaviour) ampersands are also replaced. The 'clean_url' filter is applied to the returned cleaned URL.
package | BackPress |
---|---|
since | 1.2.0 |
deprecated | 3.0.0 |
deprecated | Use esc_url() |
see | for esc_url() |
string
The URL to be cleaned.
array
Optional. An array of acceptable protocols.
string
Optional. How the URL will be used. Default is 'display'.
string
The cleaned $url after the 'clean_url' filter is applied.current_time(string $type, integer|boolean $gmt = 0
) : integer | string
The 'mysql' type will return the time in the format for MySQL DATETIME field. The 'timestamp' type will return the current timestamp.
If $gmt is set to either '1' or 'true', then both types will use GMT time. if $gmt is false, the output is adjusted with the GMT offset in the WordPress option.
package | BackPress |
---|---|
since | 1.0.0 |
string
Either 'mysql' or 'timestamp'.
integer
boolean
Optional. Whether to use GMT timezone. Default is false.
integer
string
String if $type is 'gmt', int if $type is 'timestamp'.ent2ncr(string $text) : string
package | BackPress |
---|---|
since | 1.5.1 |
string
The text within which entities will be converted.
string
Text with converted entities.esc_attr(string $text) : string
esc_html(string $text) : string
esc_js(string $text) : string
Escapes text strings for echoing in JS, both inline (for example in onclick="...") and inside
Strip close comment and close php tags from file headers used by WP See http://core.trac.wordpress.org/ticket/8497
Parameters
$str