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

Category: WordPress API Reference

  • October 9, 2026
    wp_specialchars_decode(): Converts a number of HTML entities into their special characters.
  • October 9, 2026
    wp_sprintf_l(): Localizes list items before the rest of the content.
  • October 9, 2026
    wp_transition_comment_status(): Calls hooks for when a comment status transition occurs.
  • October 9, 2026
    wp_update_comment(): Updates an existing comment in the database.
  • October 9, 2026
    wp_update_comment_count(): Updates the comment count for post(s).
  • October 9, 2026
    wp_get_attachment_image_srcset(): Retrieves the value for an image attachment's 'srcset' attribute.
  • October 9, 2026
    wp_get_attachment_image_url(): Gets the URL of an image attachment.
  • October 9, 2026
    wp_get_avif_info(): Extracts meta information about an AVIF file: width, height, bit depth, and number of channels.
  • October 9, 2026
    wp_get_loading_optimization_attributes(): Gets loading optimization attributes.
  • October 9, 2026
    wp_get_object_terms(): Retrieves the terms associated with the given object(s), in the supplied taxonomies.
  • October 9, 2026
    wp_get_split_term(): Gets the new term ID corresponding to a previously split term.
  • October 9, 2026
    wp_pre_kses_block_attributes(): Removes non-allowable HTML from parsed block attribute values when filtering in the post context.
  • October 9, 2026
    wp_slash(): Adds slashes to a string or recursively adds slashes to strings within an array.
  • October 9, 2026
    wp_spaces_regexp(): Returns the regexp for common whitespace characters.
  • October 9, 2026
    wp_get_attachment_image_sizes(): Retrieves the value for an image attachment's 'sizes' attribute.
  • October 9, 2026
    wp_get_attachment_image_src(): Retrieves an image to represent an attachment.
  • October 9, 2026
    the_date(): Displays or retrieves the date of the post (once per date).
  • October 9, 2026
    the_modified_date(): Displays the date on which the post was last modified.
  • October 9, 2026
    update_termmeta_cache(): Updates metadata cache for list of term IDs.
  • October 9, 2026
    wp_add_object_terms(): Adds term(s) associated with a given object.
  • October 9, 2026
    wp_auth_check(): Checks whether a user is still logged in, for the heartbeat.
  • October 9, 2026
    wp_check_filetype(): Retrieves the file type from the file name.
  • October 9, 2026
    wp_check_filetype_and_ext(): Attempts to determine the real file type of a file.
  • October 9, 2026
    wp_check_jsonp_callback(): Checks that a JSONP callback is a valid JavaScript callback name.
  • October 9, 2026
    wp_check_term_hierarchy_for_loops(): Checks the given subset of the term hierarchy for hierarchy loops.
  • October 9, 2026
    wp_date(): Retrieves the date, in localized format.
  • October 9, 2026
    wp_delete_object_term_relationships(): Unlinks the object from the taxonomy or taxonomies.
  • October 9, 2026
    set_post_thumbnail(): Sets the post thumbnail (featured image) for the given post.
  • October 9, 2026
    single_tag_title(): Displays or retrieves page title for tag post archive.
  • October 9, 2026
    single_term_title(): Displays or retrieves page title for taxonomy term archive.
  • October 9, 2026
    sanitize_post(): Sanitizes every post field.
  • October 9, 2026
    sanitize_post_field(): Sanitizes a post field based on context.
  • October 9, 2026
    register_post_meta(): Registers a meta key for posts.
  • October 9, 2026
    register_post_status(): Registers a post status.
  • October 9, 2026
    is_sticky(): Determines whether a post is sticky.
  • October 9, 2026
    get_post_comments_feed_link(): Retrieves the permalink for the post comments feed.
  • October 9, 2026
    get_post_permalink(): Retrieves the permalink for a post of a custom post type.
  • October 9, 2026
    get_post_type_archive_feed_link(): Retrieves the permalink for a post type archive feed.
  • October 9, 2026
    get_posts_nav_link(): Retrieves the post pages link navigation for previous and next pages.
  • October 9, 2026
    get_preview_post_link(): Retrieves the URL used for the post preview.
  • October 9, 2026
    wp_validate_redirect(): Validates a URL for use in a redirect.
  • October 9, 2026
    wp_validate_auth_cookie(): Validates authentication cookie.
  • October 9, 2026
    wp_validate_logged_in_cookie(): Validates the logged-in cookie.
  • October 9, 2026
    wp_text_diff(): Displays a human readable HTML representation of the difference between two strings.
  • October 9, 2026
    wp_update_custom_css_post(): Updates the custom_css post for a given theme.
  • October 9, 2026
    wp_signon(): Authenticates and logs a user in with 'remember' capability.
  • October 9, 2026
    wp_set_password(): Updates the user's password with a new hashed one.
  • October 9, 2026
    wp_set_options_autoload(): Sets the autoload value for multiple options in the database.
  • October 9, 2026
    wp_set_option_autoload_values(): Sets the autoload values for multiple options in the database.
  • October 9, 2026
    wp_set_option_autoload(): Sets the autoload value for an option in the database.
  • October 9, 2026
    wp_set_comment_status(): Sets the status of a comment.
  • October 9, 2026
    wp_set_current_user(): Changes the current user by ID or name.
  • October 9, 2026
    wp_set_auth_cookie(): Sets the authentication cookies for a given user ID.
  • October 9, 2026
    wp_set_comment_cookies(): Sets the cookies used to store an unauthenticated commentator's identity.
  • October 9, 2026
    wp_send_new_user_notifications(): Initiates email notifications related to the creation of new users.
  • October 9, 2026
    wp_register_block_types_from_metadata_collection(): Registers all block types from a block metadata collection.
  • October 9, 2026
    wp_salt(): Returns a salt to add to hashes.
  • October 9, 2026
    wp_prime_network_option_caches(): Primes specific network options into the cache with a single database query.
  • October 9, 2026
    wp_register_block_metadata_collection(): Registers a block metadata collection.
  • October 9, 2026
    wp_new_comment(): Adds a new comment to the database.
  • October 9, 2026
    wp_page_menu(): Displays or retrieves a list of pages with an optional home link.
  • October 9, 2026
    wp_list_users(): Lists all the users of the site, with several options available.
  • October 9, 2026
    wp_list_comments(): Displays a list of comments.
  • October 9, 2026
    wp_kses_split(): Searches for HTML tags, no matter how malformed.
  • October 9, 2026
    wp_kses_uri_attributes(): Returns an array of HTML attribute names whose value contains a URL.
  • October 9, 2026
    wp_kses_one_attr(): Filters one HTML attribute and ensures its value is allowed.
  • October 9, 2026
    wp_kses_hook(): You add any KSES hooks here.
  • October 9, 2026
    wp_kses_normalize_entities(): Converts and fixes HTML entities.
  • October 9, 2026
    wp_insert_comment(): Inserts a comment into the database.
  • October 9, 2026
    wp_kses_hair_parse(): Builds an attribute list from string containing attributes.
  • 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_create_user_request(): Creates and logs a user request to perform a specific action.
  • 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_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_calculate_image_srcset(): A helper function to calculate the image sources to include in a 'srcset' attribute.
  • 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_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_allow_comment(): Validates whether this comment is allowed to be made.