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

Category: WordPress API Reference

  • October 9, 2026
    get_metadata(): Retrieves the value of a metadata field for the specified object type and ID.
  • October 9, 2026
    get_meta_sql(): Given a meta query, generates SQL clauses to be appended to a main query.
  • October 9, 2026
    get_lastpostmodified(): Gets the most recent time that a post on the site was modified.
  • October 9, 2026
    get_locale_stylesheet_uri(): Retrieves the localized stylesheet URI.
  • October 9, 2026
    get_language_attributes(): Gets the language attributes for the 'html' tag.
  • October 9, 2026
    get_lastpostdate(): Retrieves the most recent time that a post on the site was published.
  • October 9, 2026
    get_image_tag(): Gets an img tag for an image attachment, scaling it down if requested.
  • October 9, 2026
    get_gmt_from_date(): Given a date in the timezone of the site, returns that date in UTC.
  • October 9, 2026
    get_header(): Loads header template.
  • October 9, 2026
    get_extended(): Gets extended entry info ().
  • October 9, 2026
    get_file_data(): Retrieves metadata from a file.
  • October 9, 2026
    get_footer(): Loads footer template.
  • October 9, 2026
    get_date_from_gmt(): Given a date in UTC or GMT timezone, returns that date in the timezone of the site.
  • October 9, 2026
    get_dirsize(): Gets the size of a directory.
  • October 9, 2026
    get_comments(): Retrieves a list of comments.
  • October 9, 2026
    get_comments_pagination_arrow(): Helper function that returns the proper pagination arrow HTML for CommentsPaginationNext and CommentsPaginationPrevious blocks based on the provided paginationArrow…
  • October 9, 2026
    get_comment_meta(): Retrieves comment meta field for a comment.
  • October 9, 2026
    get_comment_pages_count(): Calculates the total number of comment pages.
  • October 9, 2026
    get_comment_count(): Retrieves the total comment counts for the whole site or a single post.
  • October 9, 2026
    get_comment_author_email_link(): Returns the HTML email link to the author of the current comment.
  • October 9, 2026
    get_children(): Retrieves all children of the post parent ID.
  • October 9, 2026
    get_comment(): Retrieves comment data given a comment ID or comment object.
  • October 9, 2026
    get_bloginfo(): Retrieves information about the current site.
  • October 9, 2026
    get_blogs_of_user(): Gets the sites a user belongs to.
  • October 9, 2026
    get_calendar(): Displays calendar with days that have posts as links.
  • October 9, 2026
    get_cancel_comment_reply_link(): Retrieves HTML content for cancel comment reply link.
  • October 9, 2026
    get_avatar(): Retrieves the avatar img tag for a user, email address, MD5 hash, comment, or post.
  • October 9, 2026
    get_author_feed_link(): Retrieves the feed link for a given author.
  • October 9, 2026
    get_available_languages(): Gets all available languages based on the presence of *.mo and *.l10n.php files in a given directory.
  • October 9, 2026
    get_attachment_link(): Retrieves the permalink for an attachment.
  • October 9, 2026
    get_attachment_taxonomies(): Retrieves taxonomies attached to given the attachment.
  • October 9, 2026
    get_archives_link(): Retrieves archive link content based on predefined or custom code.
  • October 9, 2026
    get_attached_file(): Retrieves attached file path based on attachment ID.
  • October 9, 2026
    get_approved_comments(): Retrieves the approved comments for a post.
  • October 9, 2026
    get_ancestors(): Gets an array of ancestor IDs for a given object.
  • October 9, 2026
    get_adjacent_post_link(): Retrieves the adjacent post link.
  • October 9, 2026
    get_adjacent_post_rel_link(): Retrieves the adjacent post relational link.
  • October 9, 2026
    get_admin_url(): Retrieves the URL to the admin area for a given site.
  • October 9, 2026
    get_adjacent_image_link(): Gets the next or previous image link that has the same post parent.
  • October 9, 2026
    get_adjacent_post(): Retrieves the adjacent post.
  • October 9, 2026
    generate_block_asset_handle(): Generates the name for an asset based on the name of the block and the field name provided.
  • October 9, 2026
    gallery_shortcode(): Builds the Gallery shortcode output.
  • October 9, 2026
    format_for_editor(): Formats text for the editor.
  • October 9, 2026
    format_to_edit(): Acts on text which is about to be edited.
  • October 9, 2026
    filter_default_option(): Filters the default value for the option.
  • October 9, 2026
    filter_block_kses_value(): Filters and sanitizes a parsed block attribute value to remove non-allowable HTML.
  • October 9, 2026
    filter_default_metadata(): Filters into default_{$object_type}_metadata and adds in default value.
  • October 9, 2026
    filter_block_content(): Filters and sanitizes block content to remove non-allowable HTML from parsed block attribute values.
  • October 9, 2026
    filter_block_core_template_part_attributes(): Sanitizes the value of the Template Part block's tagName attribute.
  • October 9, 2026
    filter_block_kses(): Filters and sanitizes a parsed block to remove non-allowable HTML from block attribute values.
  • October 9, 2026
    excerpt_remove_blocks(): Parses blocks out of a content string, and renders those appropriate for the excerpt.
  • October 9, 2026
    esc_url(): Checks and cleans a URL.
  • October 9, 2026
    esc_sql(): Escapes data for use in a MySQL query.
  • October 9, 2026
    esc_html_x(): Translates string with gettext context, and escapes it for safe use in HTML output.
  • October 9, 2026
    esc_js(): Escapes single quotes, ", , , &, and fixes line endings.
  • October 9, 2026
    esc_html_e(): Displays translated text that has been escaped for safe use in HTML output.
  • October 9, 2026
    esc_attr_x(): Translates string with gettext context, and escapes it for safe use in an attribute.
  • October 9, 2026
    esc_html__(): Retrieves the translation of $text and escapes it for safe use in HTML output.
  • October 9, 2026
    esc_attr__(): Retrieves the translation of $text and escapes it for safe use in an attribute.
  • October 9, 2026
    esc_attr_e(): Displays translated text that has been escaped for safe use in an attribute.
  • October 9, 2026
    edit_tag_link(): Displays or retrieves the edit link for a tag with formatting.
  • October 9, 2026
    edit_term_link(): Displays or retrieves the edit term link with formatting.
  • October 9, 2026
    edit_bookmark_link(): Displays the edit bookmark link anchor content.
  • October 9, 2026
    edit_post_link(): Displays the edit post link for post.
  • October 9, 2026
    dynamic_sidebar(): Displays dynamic sidebar.
  • October 9, 2026
    doing_filter(): Returns whether or not a filter hook is currently being processed.
  • October 9, 2026
    doing_action(): Returns whether or not an action hook is currently being processed.
  • October 9, 2026
    do_shortcodes_in_html_tags(): Searches only inside HTML elements for shortcodes and process them.
  • October 9, 2026
    do_feed(): Loads the feed template from the use of an action hook.
  • October 9, 2026
    do_shortcode(): Searches content for shortcodes and filter shortcodes through their hooks.
  • October 9, 2026
    do_enclose(): Checks content for video and audio links to add as enclosures.
  • October 9, 2026
    do_action(): Calls the callback functions that have been added to an action hook.
  • October 9, 2026
    do_action_deprecated(): Fires functions attached to a deprecated action hook.
  • October 9, 2026
    discover_pingback_server_uri(): Finds a pingback server URI based on the given URL.
  • October 9, 2026
    disabled(): Outputs the HTML disabled attribute.
  • October 9, 2026
    delete_user_setting(): Deletes user interface settings.
  • October 9, 2026
    delete_user_meta(): Removes metadata matching criteria from a user.
  • October 9, 2026
    delete_user_option(): Deletes user option with global blog capability.
  • October 9, 2026
    delete_term_meta(): Removes metadata matching criteria from a term.
  • October 9, 2026
    delete_network_option(): Removes a network option by name.
  • October 9, 2026
    delete_post_meta(): Deletes a post meta field for the given post ID.
  • October 9, 2026
    delete_metadata_by_mid(): Deletes metadata by meta ID.
  • October 9, 2026
    delete_metadata(): Deletes metadata for the specified object.
  • October 9, 2026
    delete_comment_meta(): Removes metadata matching criteria from a comment.
  • October 9, 2026
    delete_expired_transients(): Deletes all expired transients.
  • October 9, 2026
    dead_db(): Loads custom DB error or display WordPress DB error.
  • October 9, 2026
    date_i18n(): Retrieves the date in localized format, based on a sum of Unix timestamp and timezone offset in seconds.
  • October 9, 2026
    current_user_can(): Returns whether the current user has the specified capability.
  • October 9, 2026
    current_user_can_for_site(): Returns whether the current user has the specified capability for a given site.
  • October 9, 2026
    current_time(): Retrieves the current time based on specified type.
  • October 9, 2026
    count_user_posts(): Gets the number of posts a user has written.
  • October 9, 2026
    count_users(): Counts number of users who have each of the user roles.
  • October 9, 2026
    count_many_users_posts(): Gets the number of posts written by a list of users.
  • October 9, 2026
    comments_popup_link(): Displays the link to the comments for the current post ID.
  • October 9, 2026
    comments_template(): Loads the comment template specified in $file.
  • October 9, 2026
    comment_reply_link(): Displays the HTML content for reply to comment link.
  • October 9, 2026
    comments_number(): Displays the language string for the number of comments the current post has.
  • October 9, 2026
    comment_id_fields(): Outputs hidden input HTML for replying to comments.
  • October 9, 2026
    comment_class(): Generates semantic classes for each comment element.
  • October 9, 2026
    comment_form(): Outputs a complete commenting form for use within a template.