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

Tag: WordPress

  • 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
    render_block(): Renders a single block into a HTML string.
  • October 9, 2026
    remove_query_arg(): Removes an item or items from a query string.
  • October 9, 2026
    remove_accents(): Converts all accent characters to ASCII characters.
  • October 9, 2026
    register_term_meta(): Registers a meta key for terms.
  • October 9, 2026
    registered_meta_key_exists(): Checks if a meta key is registered.
  • October 9, 2026
    register_block_type_from_metadata(): Registers a block type from the metadata stored in the block.json file.
  • October 9, 2026
    register_meta(): Registers a meta key.
  • October 9, 2026
    register_block_type(): Registers a block type.
  • October 9, 2026
    register_block_style(): Registers a new block style.
  • October 9, 2026
    register_block_style_handle(): Finds a style handle for the block metadata field.
  • October 9, 2026
    register_block_script_module_id(): Finds a script module ID for the selected block metadata field.
  • October 9, 2026
    recurse_dirsize(): Gets the size of a directory recursively.
  • October 9, 2026
    register_block_script_handle(): Finds a script handle for the selected block metadata field.
  • October 9, 2026
    post_type_archive_title(): Displays or retrieves title for a post type archive.
  • October 9, 2026
    parse_blocks(): Parses blocks out of a content string.
  • October 9, 2026
    paginate_links(): Retrieves paginated links for archive post pages.
  • October 9, 2026
    mysql_to_rfc3339(): Parses and formats a MySQL datetime (Y-m-d H:i:s) for ISO8601 (Y-m-dTH:i:s).
  • October 9, 2026
    mysql2date(): Converts given MySQL date string into a different format. $format should be a PHP date format string. 'U' and…
  • October 9, 2026
    mbstring_binary_safe_encoding(): Sets the mbstring internal encoding to a binary safe encoding when func_overload is enabled.
  • October 9, 2026
    metadata_exists(): Determines if a meta field with the given key exists for the given object ID.
  • October 9, 2026
    maybe_hash_hex_color(): Ensures that any hex color is properly hashed.
  • October 9, 2026
    load_textdomain(): Loads a .mo file into the text domain $domain.
  • October 9, 2026
    load_theme_textdomain(): Loads the theme's translated strings.
  • October 9, 2026
    load_script_translations(): Loads the translation data for the given script handle and text domain.
  • October 9, 2026
    load_script_textdomain(): Loads the script translated strings.
  • October 9, 2026
    is_taxonomy_hierarchical(): Determines whether the taxonomy object is hierarchical.
  • October 9, 2026
    is_utf8_charset(): Indicates if a given slug for a character set represents the UTF-8 text encoding.
  • October 9, 2026
    is_site_meta_supported(): Determines whether site meta is enabled.
  • October 9, 2026
    is_protected_meta(): Determines whether a meta key is considered protected.
  • October 9, 2026
    is_serialized(): Checks value to find if it was serialized.
  • October 9, 2026
    is_post_type_viewable(): Determines whether a post type is considered "viewable".
  • October 9, 2026
    is_post_status_viewable(): Determines whether a post status is considered "viewable".
  • October 9, 2026
    is_object_in_term(): Determines if the given object is associated with any of the given terms.
  • October 9, 2026
    is_main_site(): Determines whether a site is the main site of the current network.
  • October 9, 2026
    is_new_day(): Determines whether the publish date of the current post in the loop is different from the publish date of…
  • October 9, 2026
    is_gd_image(): Determines whether the value is an acceptable type for GD image functions.
  • October 9, 2026
    is_blog_installed(): Determines whether WordPress is already installed.
  • October 9, 2026
    image_resize_dimensions(): Retrieves calculated resize dimensions for use in WP_Image_Editor.
  • October 9, 2026
    img_caption_shortcode(): Builds the Caption shortcode output.
  • October 9, 2026
    image_hwstring(): Retrieves width and height attributes using given width and height values.
  • October 9, 2026
    image_make_intermediate_size(): Resizes an image to make a thumbnail or intermediate size.
  • October 9, 2026
    image_get_intermediate_size(): Retrieves the image's intermediate size (resized) path, width, and height.
  • October 9, 2026
    get_trackback_url(): Retrieves the current post's trackback URL.
  • October 9, 2026
    get_the_time(): Retrieves the time of the post.
  • October 9, 2026
    get_the_modified_time(): Retrieves the time at which the post was last modified.
  • October 9, 2026
    get_the_taxonomies(): Retrieves all taxonomies associated with a post.
  • October 9, 2026
    get_the_date(): Retrieves the date of the post.
  • October 9, 2026
    get_the_generator(): Creates the generator XML or Comment for RSS, ATOM, etc.
  • October 9, 2026
    get_term_to_edit(): Sanitizes term for editing.
  • October 9, 2026
    get_term_field(): Gets sanitized term field.
  • October 9, 2026
    get_term_children(): Merges all term children into a single array of their IDs.
  • October 9, 2026
    get_site_icon_url(): Returns the Site Icon URL.
  • October 9, 2026
    get_template_part(): Loads a template part into a template.
  • October 9, 2026
    get_search_query(): Retrieves the contents of the search WordPress query variable.
  • October 9, 2026
    get_sidebar(): Loads sidebar template.
  • October 9, 2026
    get_posts_by_author_sql(): Retrieves the post SQL based on capability, author, and type.
  • October 9, 2026
    get_private_posts_cap_sql(): Retrieves the private post SQL based on capability.
  • October 9, 2026
    get_post_types(): Gets a list of all registered post type objects.
  • October 9, 2026
    get_post_types_by_support(): Retrieves a list of post type names that support a specific feature.
  • October 9, 2026
    get_post_stati(): Gets a list of post statuses.
  • October 9, 2026
    get_post_type_capabilities(): Builds an object with all post type capabilities out of a post type object Post type capabilities use the…
  • October 9, 2026
    get_post_mime_types(): Gets default post mime types.
  • October 9, 2026
    get_post_reply_link(): Retrieves HTML content for reply to post link.
  • October 9, 2026
    get_post_field(): Retrieves data from a post field based on Post ID.
  • October 9, 2026
    get_post_mime_type(): Retrieves the mime type of an attachment based on the ID.
  • October 9, 2026
    get_post_custom_values(): Retrieves values for a custom post field.
  • October 9, 2026
    get_post_custom(): Retrieves post meta fields, based on post ID.
  • October 9, 2026
    get_post_custom_keys(): Retrieves meta field names for a post.
  • October 9, 2026
    get_page_link(): Retrieves the permalink for the current page or page ID.
  • October 9, 2026
    get_pages(): Retrieves an array of pages (or hierarchical post type items).
  • October 9, 2026
    get_next_post(): Retrieves the next post that is adjacent to the current post.
  • October 9, 2026
    get_next_post_link(): Retrieves the next post link that is adjacent to the current post.
  • October 9, 2026
    get_home_url(): Retrieves the URL for a given site where the front end is accessible.
  • October 9, 2026
    get_edit_term_link(): Retrieves the URL for editing a given term.
  • October 9, 2026
    get_edit_comment_link(): Retrieves the edit comment link.
  • October 9, 2026
    get_edit_post_link(): Retrieves the edit post link for post.
  • October 9, 2026
    get_edit_profile_url(): Retrieves the URL to the user's profile editor.
  • October 9, 2026
    get_delete_post_link(): Retrieves the delete posts link for post.
  • October 9, 2026
    get_day_link(): Retrieves the permalink for the day archives with year and month.
  • October 9, 2026
    get_dashboard_url(): Retrieves the URL to the user's dashboard.
  • October 9, 2026
    get_comments_number_text(): Displays the language string for the number of comments the current post has.
  • October 9, 2026
    get_comment_time(): Retrieves the comment time of the current comment.
  • October 9, 2026
    get_comment_link(): Retrieves the link to a given comment.
  • October 9, 2026
    get_comment_reply_link(): Retrieves HTML content for reply to comment link.
  • October 9, 2026
    get_comment_class(): Returns the classes for the comment div as an array.
  • October 9, 2026
    get_comment_author_link(): Retrieves the HTML link to the URL of the author of the current comment.
  • October 9, 2026
    get_comment_author_url_link(): Retrieves the HTML link of the URL of the author of the current comment. $link_text parameter is only used…
  • October 9, 2026
    get_category_feed_link(): Retrieves the feed link for a category.
  • October 9, 2026
    get_avatar_url(): Retrieves the avatar URL.
  • October 9, 2026
    get_boundary_post(): Retrieves the boundary post.
  • October 9, 2026
    get_avatar_data(): Retrieves default data about the avatar.