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 51 to 100 of 4125 functions (Page 2 of 83)
wp_create_category()

Adds a new category to the database if it does not already exist.

$cat_name $category_parent
wp_create_categories()

Creates categories for the given post.

$categories $post_id
wp_insert_category()

Updates an existing Category or creates a new Category.

$catarr $wp_error
wp_update_category()

Aliases wp_insert_category() with minimal args.

$catarr
tag_exists()

Checks whether a post tag with a given name exists.

$tag_name
wp_create_tag()

Adds a new tag to the database if it does not already exist.

$tag_name
get_tags_to_edit()

Gets comma-separated list of tags available to edit.

$post_id $taxonomy
get_terms_to_edit()

Gets comma-separated list of terms available to edit for the given post ID.

$post_id $taxonomy
wp_create_term()

Adds a new term to the database if it does not already exist.

$tag_name $taxonomy
get_preferred_from_update_core()

Selects the first update version from the update_core option.

get_core_updates()

Gets available core updates.

$options
find_core_auto_update()

Gets the best available (and enabled) Auto-Update for WordPress core.

get_core_checksums()

Gets and caches the checksums for the given version of WordPress.

$version $locale
dismiss_core_update()

Dismisses core update.

$update
undismiss_core_update()

Undismisses core update.

$version $locale
find_core_update()

Finds the available update for WordPress core.

$version $locale
core_update_footer()

Returns core update footer message.

$msg
update_nag()

Returns core update notification message.

update_right_now_message()

Displays WordPress version and active theme in the 'At a Glance' dashboard widget.

get_plugin_updates()

Retrieves plugins with updates available.

wp_plugin_update_rows()

Adds a callback to display update information for plugins with updates available.

wp_plugin_update_row()

Displays update information for a plugin.

$file $plugin_data
get_theme_updates()

Retrieves themes with updates available.

wp_theme_update_rows()

Adds a callback to display update information for themes with updates available.

wp_theme_update_row()

Displays update information for a theme.

$theme_key $theme
maintenance_nag()

Displays maintenance nag HTML message.

wp_print_admin_notice_templates()

Prints the JavaScript templates for update admin notices.

wp_print_update_row_templates()

Prints the JavaScript templates for update and deletion rows in list tables.

wp_recovery_mode_nag()

Displays a notice when the user is in recovery mode.

wp_is_auto_update_enabled_for_type()

Checks whether auto-updates are enabled.

$type
wp_is_auto_update_forced_for_item()

Checks whether auto-updates are forced for an item.

$type $update $item
wp_get_auto_update_message()

Determines the appropriate auto-update message to be displayed.

wp_dashboard_setup()

Registers dashboard widgets.

wp_add_dashboard_widget()

Adds a new dashboard widget.

$widget_id $widget_name $callback +4 more
_wp_dashboard_control_callback()

Outputs controls for the current dashboard widget.

$dashboard $meta_box
wp_dashboard()

Displays the dashboard.

wp_dashboard_right_now()

Dashboard widget that displays some basic stats about the site.

wp_network_dashboard_right_now()
wp_dashboard_quick_press()

Displays the Quick Draft widget.

$error_msg
wp_dashboard_recent_drafts()

Show recent drafts of the user on the dashboard.

$drafts
_wp_dashboard_recent_comments_row()

Outputs a row for the Recent Comments widget.

$comment $show_date
wp_dashboard_site_activity()

Outputs the Activity widget.

wp_dashboard_recent_posts()

Generates Publishing Soon and Recently Published sections.

$args
wp_dashboard_recent_comments()

Show Comments section.

$total_items
wp_dashboard_rss_output()

Display generic dashboard RSS widget feed.

$widget_id
wp_dashboard_cached_rss_widget()

Checks to see if all of the feed url in $check_urls are cached.

$widget_id $callback $check_urls +1 more
wp_dashboard_trigger_widget_control()

Calls widget control callback.

$widget_control_id
wp_dashboard_rss_control()

Sets up the RSS dashboard widget control and $args to be used as input to wp_widget_rss_form().

$widget_id $form_inputs
wp_dashboard_events_news()

Renders the Events and News dashboard widget.

wp_print_community_events_markup()

Prints the markup for the Community Events section of the Events and News Dashboard widget.