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 101 to 150 of 4125 functions (Page 3 of 83)
wp_print_community_events_templates()

Renders the events templates for the Event and News widget.

wp_dashboard_primary()

'WordPress Events and News' dashboard widget.

wp_dashboard_primary_output()

Displays the WordPress events and news feeds.

$widget_id $feeds
wp_dashboard_quota()

Displays file upload quota on dashboard.

wp_dashboard_browser_nag()

Displays the browser update nag.

dashboard_browser_nag_class()

Adds an additional class to the browser nag if the current version is insecure.

$classes
wp_check_browser_version()

Checks if the user needs a browser update.

wp_dashboard_php_nag()

Displays the PHP update nag.

dashboard_php_nag_class()

Adds an additional class to the PHP nag if the current version is insecure.

$classes
wp_dashboard_site_health()

Displays the Site Health Status widget.

wp_dashboard_empty()

Outputs empty dashboard widget to be populated by JS later.

wp_welcome_panel()

Displays a welcome panel to introduce users to WordPress.

get_importers()

Retrieves the list of importers.

_usort_by_first_member()

Sorts a multidimensional array by first member of each top level member.

$a $b
register_importer()

Registers importer for WordPress.

$id $name $description +1 more
wp_import_cleanup()

Cleanup importer.

$id
wp_import_handle_upload()

Handles importer uploading and adds attachment.

wp_get_popular_importers()

Returns a list from WordPress.org of popular importer plugins.

_wp_translate_postdata()

Renames `$_POST` data from form names to DB post columns.

$update $post_data
_wp_get_allowed_postdata()

Returns only allowed post data fields.

$post_data
edit_post()

Updates an existing post with values provided in `$_POST`.

$post_data
bulk_edit_posts()

Processes the post data for the bulk editing of posts.

$post_data
get_default_post_to_edit()

Returns default post information to use when populating the "Write Post" form.

$post_type $create_in_db
post_exists()

Determines if a post exists based on title, content, date and type.

$title $content $date +2 more
wp_write_post()

Creates a new post from the "Write Post" form using `$_POST` information.

write_post()

Calls wp_write_post() and handles the errors.

add_meta()

Adds post meta data defined in the `$_POST` superglobal for a post with given ID.

$post_id
delete_meta()

Deletes post meta data by meta ID.

$mid
get_meta_keys()

Returns a list of previously defined keys.

get_post_meta_by_id()

Returns post meta data by meta ID.

$mid
has_meta()

Returns meta data for the given post ID.

$post_id
update_meta()

Updates post meta data by meta ID.

$meta_id $meta_key $meta_value
_fix_attachment_links()

Replaces hrefs of attachment anchors with up-to-date permalinks.

$post
get_available_post_statuses()

Returns all the possible statuses for a post type.

$type
wp_edit_posts_query()

Runs the query to fetch the posts for listing on the edit posts page.

$q
wp_edit_attachments_query_vars()

Returns the query variables for the current attachments request.

$q
wp_edit_attachments_query()

Executes a query for attachments. An array of WP_Query arguments

$q
postbox_classes()

Returns the list of classes to be used by a meta box.

$box_id $screen_id
get_sample_permalink()

Returns a sample permalink based on the post name.

$post $title $name
get_sample_permalink_html()

Returns the HTML of the sample permalink slug editor.

$post $new_title $new_slug
_wp_post_thumbnail_html()

Returns HTML for the post thumbnail meta box.

$thumbnail_id $post
wp_check_post_lock()

Determines whether the post is currently being edited by another user.

$post
wp_set_post_lock()

Marks the post as currently being edited by the current user.

$post
_admin_notice_post_locked()

Outputs the HTML for the notice to say that someone else is editing or has taken over editing of this post.

wp_create_post_autosave()

Creates autosave data for the specified post from `$_POST` data.

$post_data
wp_autosave_post_revisioned_meta_fields()

Autosaves the revisioned meta fields.

$new_autosave
post_preview()

Saves a draft or manually autosaves for the purpose of showing a post preview.

wp_autosave()

Saves a post submitted with XHR.

$post_data
redirect_post()

Redirects to previous page.

$post_id
taxonomy_meta_box_sanitize_cb_checkboxes()

Sanitizes POST values from a checkbox taxonomy metabox.

$taxonomy $terms