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 2251 to 2300 of 4125 functions (Page 46 of 83)
wp_list_pages()

Retrieves or displays a list of pages (or hierarchical post type items) in list (li) format.

$args
wp_page_menu()

Displays or retrieves a list of pages with an optional home link.

$args
walk_page_tree()

Retrieves HTML list content for page list.

$pages $depth $current_page +1 more
walk_page_dropdown_tree()

Retrieves HTML dropdown (select) content for page list.

$args
the_attachment_link()

Displays an attachment page link using an image or icon.

$post $fullsize $deprecated +1 more
wp_get_attachment_link()

Retrieves an attachment page link using an image or icon, if possible.

$post $size $permalink +3 more
prepend_attachment()

Wraps attachment in paragraph tag before content.

$content
get_the_password_form()

Retrieves protected post password form content.

$post
is_page_template()

Determines whether the current post uses a page template.

$template
get_page_template_slug()

Gets the specific template filename for a given post.

$post
wp_post_revision_title()

Retrieves formatted date timestamp of a revision (linked to that revisions's page).

$revision $link
wp_post_revision_title_expanded()

Retrieves formatted date timestamp of a revision (linked to that revisions's page).

$revision $link
wp_list_post_revisions()

Displays a list of a post's revisions.

$post $type
get_post_parent()

Retrieves the parent post object for the given post.

$post
has_post_parent()

Returns whether the given post has a parent post.

$post
add_rewrite_rule()

Adds a rewrite rule that transforms a URL structure to a set of query vars.

$regex $query $after
add_rewrite_tag()

Adds a new rewrite tag (like %postname%).

$tag $regex $query
remove_rewrite_tag()

Removes an existing rewrite tag (like %postname%).

$tag
add_permastruct()

Adds a permalink structure.

$name $struct $args
remove_permastruct()

Removes a permalink structure.

$name
add_feed()

Adds a new feed type like /atom1/.

$feedname $callback
flush_rewrite_rules()

Removes rewrite rules and then recreate rewrite rules.

$hard
add_rewrite_endpoint()

Adds an endpoint, like /trackback/.

$name $places $query_var
_wp_filter_taxonomy_base()

Filters the URL base for taxonomies.

$base
wp_resolve_numeric_slug_conflicts()

Resolves numeric slugs that collide with date permalinks.

$query_vars
url_to_postid()

Examines a URL and try to determine the post ID it represents.

$url
get_option()

Retrieves an option value based on an option name.

$option $default_value
wp_prime_option_caches()

Primes specific options into the cache with a single database query.

$options
wp_prime_option_caches_by_group()

Primes the cache of all options registered with a specific option group.

$option_group
get_options()

Retrieves multiple options.

$options
wp_set_option_autoload_values()

Sets the autoload values for multiple options in the database.

$options
wp_set_options_autoload()

Sets the autoload value for multiple options in the database.

$options $autoload
wp_set_option_autoload()

Sets the autoload value for an option in the database.

$option $autoload
wp_protect_special_option()

Protects WordPress special option from being modified.

$option
form_option()

Prints option value after sanitizing for forms.

$option
wp_load_alloptions()

Loads and caches all autoloaded options, if available or all options.

$force_cache
wp_prime_site_option_caches()

Primes specific network options for the current network into the cache with a single database query.

$options
wp_prime_network_option_caches()

Primes specific network options into the cache with a single database query.

$network_id $options
wp_load_core_site_options()

Loads and primes caches of certain often requested network options if is_multisite().

$network_id
update_option()

Updates the value of an option that was already added.

$option $value $autoload
add_option()

Adds a new option.

$option $value $deprecated +1 more
delete_option()

Removes an option by name. Prevents removal of protected WordPress options.

$option
wp_determine_option_autoload_value()

Determines the appropriate autoload value for an option based on input.

$option $value $serialized_value +1 more
wp_filter_default_autoload_value_via_option_size()

Filters the default autoload value to disable autoloading if the option value is too large.

$autoload $option $value +1 more
delete_transient()

Deletes a transient.

$transient
get_transient()

Retrieves the value of a transient.

$transient
set_transient()

Sets/updates the value of a transient.

$transient $value $expiration
delete_expired_transients()

Deletes all expired transients.

$force_db
wp_user_settings()

Saves and restores user interface settings stored in a cookie.

get_user_setting()

Retrieves user interface setting value based on setting name.

$name $default_value