WPDev.one
Core PHP Functions

Functions Reference

4125+ PHP functions available in the WordPress global namespace. Complete documentation with parameters, return values, and usage examples.

Showing 1951 to 2000 of 4125 functions (Page 40 of 83)
wp_kses_named_entities()

Callback for `wp_kses_normalize_entities()` regular expression.

$matches
wp_kses_xml_named_entities()

Callback for `wp_kses_normalize_entities()` regular expression.

$matches
wp_kses_normalize_entities2()

Callback for `wp_kses_normalize_entities()` regular expression.

$matches
wp_kses_normalize_entities3()

Callback for `wp_kses_normalize_entities()` for regular expression.

$matches
valid_unicode()

Determines if a Unicode codepoint is valid.

$i
wp_kses_decode_entities()

Converts all numeric HTML entities to their named counterparts.

$content
_wp_kses_decode_entities_chr()

Regex callback for `wp_kses_decode_entities()`.

$matches
_wp_kses_decode_entities_chr_hexdec()

Regex callback for `wp_kses_decode_entities()`.

$matches
wp_filter_kses()

Sanitize content with allowed HTML KSES rules.

$data
wp_kses_data()

Sanitize content with allowed HTML KSES rules.

$data
wp_filter_post_kses()

Sanitizes content for allowed HTML tags for post content.

$data
wp_filter_global_styles_post()

Sanitizes global styles user content removing unsafe rules.

$data
wp_kses_post()

Sanitizes content for allowed HTML tags for post content.

$data
wp_kses_post_deep()

Navigates through an array, object, or scalar, and sanitizes content for

$data
wp_filter_nohtml_kses()

Strips all HTML from a text string.

$data
kses_init_filters()

Adds all KSES input form content filters.

kses_remove_filters()

Removes all KSES input form content filters.

kses_init()

Sets up most of the KSES filters for input form content.

safecss_filter_attr()

Filters an inline style attribute and removes disallowed rules.

$css $deprecated
_wp_add_global_attributes()

Helper function to add global attributes to a tag in the allowed HTML list.

$value
_wp_kses_allow_pdf_objects()

Helper function to check if this is a safe PDF URL.

$url
create_initial_post_types()

Creates the initial post types when 'init' action is fired.

get_attached_file()

Retrieves attached file path based on attachment ID.

$attachment_id $unfiltered
update_attached_file()

Updates attachment file path based on attachment ID.

$attachment_id $file
_wp_relative_upload_path()

Returns relative path to an uploaded file.

$path
get_children()

Retrieves all children of the post parent ID.

$args $output
get_extended()

Gets extended entry info (<!--more-->).

$post
get_post()

Retrieves post data given a post ID or post object.

$post $output $filter
get_post_ancestors()

Retrieves the IDs of the ancestors of a post.

$post
get_post_field()

Retrieves data from a post field based on Post ID.

$field $post $context
get_post_mime_type()

Retrieves the mime type of an attachment based on the ID.

$post
get_post_status()

Retrieves the post status based on the post ID.

$post
get_post_statuses()

Retrieves all of the WordPress supported post statuses.

get_page_statuses()

Retrieves all of the WordPress support page statuses.

_wp_privacy_statuses()

Returns statuses for privacy requests.

register_post_status()

Registers a post status. Do not use before init.

$post_status $args
get_post_status_object()

Retrieves a post status object by name.

$post_status
get_post_stati()

Gets a list of post statuses.

$args $output $operator
is_post_type_hierarchical()

Determines whether the post type is hierarchical.

$post_type
post_type_exists()

Determines whether a post type is registered.

$post_type
get_post_type()

Retrieves the post type of the current post or of a given post.

$post
get_post_type_object()

Retrieves a post type object by name.

$post_type
get_post_types()

Gets a list of all registered post type objects.

$args $output $operator
register_post_type()

Registers a post type.

$post_type $args
unregister_post_type()

Unregisters a post type.

$post_type
get_post_type_capabilities()

Builds an object with all post type capabilities out of a post type object

$args
_post_type_meta_capabilities()

Stores or returns a list of post type meta caps for map_meta_cap().

$capabilities
get_post_type_labels()

Builds an object with all post type labels out of a post type object.

$post_type_object
_get_custom_object_labels()

Builds an object with custom-something object (post type, taxonomy) labels

$data_object $nohier_vs_hier_defaults
_add_post_type_submenus()

Adds submenus for post types.