[ Index ] |
PHP Cross Reference of GlotPress |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 220 lines (5 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
gp_startswith( $haystack, $needle ) X-Ref |
Functions, which make work with strings easier |
gp_endswith( $haystack, $needle ) X-Ref |
No description |
gp_in( $needle, $haystack ) X-Ref |
No description |
gp_esc_attr_with_entities( $text ) X-Ref |
Escaping for HTML attributes. Similar to esc_attr(), but double encode entities. return: string The text after it has been escaped. since: 1.0.0 param: string $text The text prior to being escaped. |
esc_translation( $text ) X-Ref |
Escapes translations for HTML blocks. Similar to esc_html(), but double encode entities. return: string The text after it has been escaped. since: 1.0.0 param: string $text The text prior to being escaped. |
gp_string_similarity( $str1, $str2 ) X-Ref |
No description |
gp_levenshtein( $str1, $str2, $length1, $length2 ) X-Ref |
No description |
gp_sanitize_slug( $slug ) X-Ref |
Sanitizes a string for use as a slug, replacing whitespace and a few other characters with dashes. Limits the output to alphanumeric characters, underscore (_), periods (.) and dash (-). Whitespace becomes a dash. return: string The sanitized title. since: 2.1.0 param: string $slug The string to be sanitized for use as a slug. |
Generated: Thu Nov 21 01:01:07 2024 | Cross-referenced by PHPXref 0.7.1 |