Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Tag: PHP

  • October 9, 2026
    wp_handle_comment_submission(): Handles the submission of a comment, usually posted to wp-comments-post.php via a comment form.
  • October 9, 2026
    wp_html_excerpt(): Safely extracts not more than the first $count characters from HTML string.
  • October 9, 2026
    wp_get_themes(): Returns an array of WP_Theme objects based on the arguments.
  • October 9, 2026
    wp_get_user_contact_methods(): Sets up the user contact methods.
  • October 9, 2026
    wp_get_current_commenter(): Gets current commenter's name, email, and URL.
  • October 9, 2026
    wp_get_theme(): Gets a WP_Theme object for a theme.
  • October 9, 2026
    wp_filter_comment(): Filters and sanitizes comment data.
  • October 9, 2026
    wp_filter_content_tags(): Filters specific tags in post content and modifies their markup.
  • October 9, 2026
    wp_expand_dimensions(): Based on a supplied width/height example, returns the biggest possible dimensions based on the max width/height.
  • October 9, 2026
    wp_dropdown_languages(): Displays or returns a Language selector.
  • October 9, 2026
    wp_dropdown_users(): Creates dropdown HTML content of users.
  • October 9, 2026
    wp_defer_comment_counting(): Determines whether to defer comment counting.
  • October 9, 2026
    wp_delete_comment(): Trashes or deletes a comment.
  • October 9, 2026
    wp_customize_support_script(): Prints a script to check whether or not the Customizer is supported, and apply either the no-customize-support or customize-support…
  • October 9, 2026
    wp_create_user_request(): Creates and logs a user request to perform a specific action.
  • October 9, 2026
    wp_count_comments(): Retrieves the total comment counts for the whole site or a single post.
  • October 9, 2026
    wp_comments_personal_data_eraser(): Erases personal data associated with an email address from the comments table.
  • October 9, 2026
    wp_comments_personal_data_exporter(): Finds and exports personal data associated with an email address from the comments table.
  • October 9, 2026
    wp_constrain_dimensions(): Calculates the new dimensions for a down-sampled image.
  • October 9, 2026
    wp_check_invalid_utf8(): Checks for invalid UTF8 in a string.
  • October 9, 2026
    wp_comment_form_unfiltered_html_nonce(): Displays form token for unfiltered comments.
  • October 9, 2026
    wp_check_comment_disallowed_list(): Checks if a comment contains disallowed characters or words.
  • October 9, 2026
    wp_check_comment_flood(): Checks whether comment flooding is occurring.
  • October 9, 2026
    wp_authenticate_spam_check(): For Multisite blogs, checks if the authenticated user has been marked as a spammer, or if the user's primary…
  • October 9, 2026
    wp_calculate_image_sizes(): Creates a 'sizes' attribute value for an image.
  • October 9, 2026
    wp_calculate_image_srcset(): A helper function to calculate the image sources to include in a 'srcset' attribute.
  • October 9, 2026
    wp_authenticate_application_password(): Authenticates the user using an application password.
  • October 9, 2026
    wp_authenticate_cookie(): Authenticates the user using the WordPress auth cookie.
  • October 9, 2026
    wp_audio_shortcode(): Builds the Audio shortcode output.
  • October 9, 2026
    wp_allowed_protocols(): Retrieves a list of protocols to allow in HTML attributes.
  • October 9, 2026
    wp_allow_comment(): Validates whether this comment is allowed to be made.
  • October 9, 2026
    win_is_writable(): Workaround for Windows bug in is_writable() function PHP has issues with Windows ACL's for determine if a directory is…
  • October 9, 2026
    validate_file(): Validates a file name and path against an allowed set of rules.
  • October 9, 2026
    version_compare() — Compares two "PHP-standardized" version number strings.
  • October 9, 2026
    urlencode() — URL-encodes string.
  • October 9, 2026
    update_user_option(): Updates user option with global blog capability.
  • October 9, 2026
    update_object_term_cache(): Updates the cache for the given term object ID(s).
  • October 9, 2026
    update_metadata_by_mid(): Updates metadata by meta ID.
  • October 9, 2026
    update_network_option(): Updates the value of a network option that was already added.
  • October 9, 2026
    update_metadata(): Updates metadata for the specified object.
  • October 9, 2026
    update_meta_cache(): Updates the metadata cache for the specified objects.
  • October 9, 2026
    update_comment_meta(): Updates comment meta field based on comment ID.
  • October 9, 2026
    untrailingslashit(): Removes trailing forward slashes and backslashes if they exist.
  • October 9, 2026
    unregister_meta_key(): Unregisters a meta key from the list of registered keys.
  • October 9, 2026
    unregister_term_meta(): Unregisters a meta key for terms.
  • October 9, 2026
    translate_with_gettext_context(): Retrieves the translation of $text in the context defined in $context.
  • October 9, 2026
    translate_user_role(): Translates role name.
  • October 9, 2026
    translate_nooped_plural(): Translates and returns the singular or plural form of a string that's been registered with _n_noop() or _nx_noop().
  • October 9, 2026
    translate_smiley(): Converts one smiley code to the icon graphic file equivalent.
  • October 9, 2026
    translate(): Retrieves the translation of $text.
  • October 9, 2026
    trailingslashit(): Appends a trailing slash.
  • October 9, 2026
    the_taxonomies(): Displays the taxonomies of a post with available options.
  • October 9, 2026
    term_exists(): Determines whether a taxonomy term exists.
  • October 9, 2026
    term_is_ancestor_of(): Checks if a term is an ancestor of another term.
  • October 9, 2026
    strtotime() — Parse about any English textual datetime description into a Unix timestamp.
  • October 9, 2026
    substr() — Return part of a string.
  • October 9, 2026
    strip_core_block_namespace(): Returns the block name to use for serialization.
  • October 9, 2026
    strpos() — Find the position of the first occurrence of a substring in a string.
  • October 9, 2026
    str_replace() — Replace all occurrences of the search string with the replacement string.
  • October 9, 2026
    spl_autoload_unregister() — Unregister given function as __autoload() implementation.
  • October 9, 2026
    spl_object_hash() — Return hash id for given object.
  • October 9, 2026
    spl_autoload_register() — Register given function as __autoload() implementation.
  • October 9, 2026
    spl_autoload_extensions() — Register and return default file extensions for spl_autoload.
  • October 9, 2026
    size_format(): Converts a number of bytes to the largest unit the bytes will fit into.
  • October 9, 2026
    smilies_init(): Converts smiley code to the icon graphic file equivalent.
  • October 9, 2026
    spl_autoload() — Default implementation for __autoload().
  • October 9, 2026
    single_month_title(): Displays or retrieves page title for post archive based on date.
  • October 9, 2026
    single_post_title(): Displays or retrieves page title for post.
  • October 9, 2026
    single_cat_title(): Displays or retrieves page title for category archive.
  • October 9, 2026
    set_site_transient(): Sets/updates the value of a site transient.
  • October 9, 2026
    set_user_setting(): Adds or updates user interface setting.
  • October 9, 2026
    session_start() — Start new or resume existing session.
  • October 9, 2026
    set_post_thumbnail_size(): Registers an image size for the post thumbnail.
  • October 9, 2026
    session_regenerate_id() — Update the current session id with a newly generated one.
  • October 9, 2026
    session_encode() — Encodes the current session data as a session encoded string.
  • October 9, 2026
    session_id() — Get and/or set the current session id.
  • October 9, 2026
    session_decode() — Decodes session data from a session encoded string.
  • October 9, 2026
    session_destroy() — Destroys all data registered to a session.
  • October 9, 2026
    session_cache_limiter() — Get and/or set the current cache limiter.
  • October 9, 2026
    session_create_id is used to create new session id for the current session.
  • October 9, 2026
    serialize_blocks(): Returns a joined string of the aggregate serialization of the given parsed blocks.
  • October 9, 2026
    session_cache_expire() — Get and/or set current cache expire.
  • October 9, 2026
    serialize_block_attributes(): Given an array of attributes, returns a string in the serialized attributes format prepared for post content.
  • October 9, 2026
    serialize_block(): Returns the content of a block, including comment delimiters, serializing all attributes from the given parsed block.
  • October 9, 2026
    selected(): Outputs the HTML selected attribute.
  • October 9, 2026
    sanitize_title_with_dashes(): Sanitizes a title, replacing whitespace and a few other characters with dashes.
  • October 9, 2026
    sanitize_user(): Sanitizes a username, stripping out unsafe characters.
  • October 9, 2026
    sanitize_term(): Sanitizes all term fields.
  • October 9, 2026
    sanitize_term_field(): Sanitizes the field value in the term based on the context.
  • October 9, 2026
    sanitize_sql_orderby(): Ensures a string is a valid SQL 'order by' clause.
  • October 9, 2026
    sanitize_html_class(): Sanitizes an HTML classname to ensure it only contains valid characters.
  • October 9, 2026
    sanitize_meta(): Sanitizes meta value.
  • October 9, 2026
    sanitize_hex_color(): Sanitizes a hex color.
  • October 9, 2026
    sanitize_hex_color_no_hash(): Sanitizes a hex color without a hash.
  • October 9, 2026
    sanitize_file_name(): Sanitizes a filename, replacing whitespace with dashes.
  • October 9, 2026
    rest_validate_enum(): Validates that the given value is a member of the JSON Schema "enum".
  • October 9, 2026
    rest_parse_date(): Parses an RFC3339 time into a Unix timestamp.
  • October 9, 2026
    rest_send_allow_header(): Sends the "Allow" header to state all methods that can be sent to the current route.
  • October 9, 2026
    rest_is_integer(): Determines if a given value is integer-like.
  • October 9, 2026
    remove_query_arg(): Removes an item or items from a query string.