Marks a function as deprecated and inform when it has been used.
Description
There is a ‘deprecated_function_run’ hook that will be called that can be used to get the backtrace up to what file and function called the deprecated function.
The current behavior is to trigger a user error if WP_DEBUG
is true.
This function is to be used in every function that is deprecated.
Parameters
$function_name
stringrequired- The function that was called.
$version
stringrequired- The version of WordPress that deprecated the function.
$replacement
stringoptional- The function that should have been called.
Default:
''
Source
function _deprecated_function( $function_name, $version, $replacement = '' ) {
/**
* Fires when a deprecated function is called.
*
* @since 2.5.0
*
* @param string $function_name The function that was called.
* @param string $replacement The function that should have been called.
* @param string $version The version of WordPress that deprecated the function.
*/
do_action( 'deprecated_function_run', $function_name, $replacement, $version );
/**
* Filters whether to trigger an error for deprecated functions.
*
* @since 2.5.0
*
* @param bool $trigger Whether to trigger the error for deprecated functions. Default true.
*/
if ( WP_DEBUG && apply_filters( 'deprecated_function_trigger_error', true ) ) {
if ( function_exists( '__' ) ) {
if ( $replacement ) {
$message = sprintf(
/* translators: 1: PHP function name, 2: Version number, 3: Alternative function name. */
__( 'Function %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ),
$function_name,
$version,
$replacement
);
} else {
$message = sprintf(
/* translators: 1: PHP function name, 2: Version number. */
__( 'Function %1$s is <strong>deprecated</strong> since version %2$s with no alternative available.' ),
$function_name,
$version
);
}
} else {
if ( $replacement ) {
$message = sprintf(
'Function %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.',
$function_name,
$version,
$replacement
);
} else {
$message = sprintf(
'Function %1$s is <strong>deprecated</strong> since version %2$s with no alternative available.',
$function_name,
$version
);
}
}
wp_trigger_error( '', $message, E_USER_DEPRECATED );
}
}
Hooks
- do_action( ‘deprecated_function_run’,
string $function_name ,string $replacement ,string $version ) Fires when a deprecated function is called.
- apply_filters( ‘deprecated_function_trigger_error’,
bool $trigger ) Filters whether to trigger an error for deprecated functions.
Related
Uses | Description |
---|---|
wp_trigger_error()wp-includes/functions.php | Generates a user-level error/warning/notice/deprecation message. |
__()wp-includes/l10n.php | Retrieves the translation of $text. |
do_action()wp-includes/plugin.php | Calls the callback functions that have been added to an action hook. |
apply_filters()wp-includes/plugin.php | Calls the callback functions that have been added to a filter hook. |
Used by | Description |
---|---|
wp_render_elements_support()wp-includes/deprecated.php | Updates the block content with elements class names. |
block_core_file_ensure_interactivity_dependency()wp-includes/deprecated.php | Ensure that the view script has the |
block_core_image_ensure_interactivity_dependency()wp-includes/deprecated.php | Ensures that the view script has the |
block_core_query_ensure_interactivity_dependency()wp-includes/deprecated.php | Ensure that the view script has the |
wp_interactivity_process_directives_of_interactive_blocks()wp-includes/deprecated.php | Processes the directives on the rendered HTML of the interactive blocks. |
wp_register_duotone_support()wp-includes/deprecated.php | Registers the style and colors block attributes for block types that support it. |
wp_render_duotone_support()wp-includes/deprecated.php | Renders out the duotone stylesheet and SVG. |
block_core_navigation_submenu_build_css_colors()wp-includes/deprecated.php | Build an array with CSS classes and inline styles defining the colors which will be applied to the navigation markup in the front-end. |
wp_tinycolor_string_to_rgb()wp-includes/deprecated.php | Parses hex, hsl, and rgb CSS strings using the same regex as TinyColor v1.4.2 used in the JavaScript. Only colors output from react-color are implemented. |
wp_get_duotone_filter_id()wp-includes/deprecated.php | Returns the prefixed id for the duotone filter for use as a CSS id. |
wp_get_duotone_filter_property()wp-includes/deprecated.php | Returns the CSS filter property url to reference the rendered SVG. |
wp_get_duotone_filter_svg()wp-includes/deprecated.php | Returns the duotone filter SVG string for the preset. |
wp_tinycolor_bound01()wp-includes/deprecated.php | Takes input from [0, n] and returns it as [0, 1]. |
_wp_tinycolor_bound_alpha()wp-includes/deprecated.php | Direct port of tinycolor’s boundAlpha function to maintain consistency with how tinycolor works. |
wp_tinycolor_rgb_to_rgb()wp-includes/deprecated.php | Rounds and converts values of an RGB object. |
wp_tinycolor_hue_to_rgb()wp-includes/deprecated.php | Helper function for hsl to rgb conversion. |
wp_tinycolor_hsl_to_rgb()wp-includes/deprecated.php | Converts an HSL object to an RGB object with converted and rounded values. |
WP_Duotone::get_filter_css_property_value_from_preset()wp-includes/class-wp-duotone.php | Gets the CSS filter property value from a preset. |
WP_Duotone::get_filter_id_from_preset()wp-includes/class-wp-duotone.php | Returns the prefixed id for the duotone filter for use as a CSS id. |
WP_Duotone::get_filter_svg_from_preset()wp-includes/class-wp-duotone.php | Gets the SVG for the duotone filter definition from a preset. |
WP_Image_Editor_Imagick::set_imagick_time_limit()wp-includes/class-wp-image-editor-imagick.php | Sets Imagick time limit. |
wp_typography_get_css_variable_inline_style()wp-includes/deprecated.php | Generates an inline style for a typography feature e.g. text decoration, text transform, and font style. |
wp_img_tag_add_decoding_attr()wp-includes/deprecated.php | Adds |
wp_get_global_styles_svg_filters()wp-includes/deprecated.php | Returns a string containing the SVGs to be referenced as filters (duotone). |
wp_skip_spacing_serialization()wp-includes/deprecated.php | Checks whether serialization of the current block’s spacing properties should occur. |
wp_render_duotone_filter_preset()wp-includes/deprecated.php | Renders the duotone filter SVG and returns the CSS filter property to reference the rendered SVG. |
wp_skip_border_serialization()wp-includes/deprecated.php | Checks whether serialization of the current block’s border properties should occur. |
wp_skip_dimensions_serialization()wp-includes/deprecated.php | Checks whether serialization of the current block’s dimensions properties should occur. |
_resolve_home_block_template()wp-includes/deprecated.php | Returns the correct template for the site’s home page. |
_wp_theme_json_webfonts_handler()wp-includes/deprecated.php | Runs the theme.json webfonts handler. |
wp_global_styles_render_svg_filters()wp-includes/deprecated.php | Renders the SVG filters supplied by theme.json. |
_inject_theme_attribute_in_block_template_content()wp-includes/deprecated.php | Parses wp_template content and injects the active theme’s stylesheet as a theme attribute into each wp_template_part |
_remove_theme_attribute_in_block_template_content()wp-includes/deprecated.php | Parses a block template and removes the theme attribute from each template part. |
wp_get_loading_attr_default()wp-includes/deprecated.php | Gets the default value to use for a |
_wp_multiple_block_styles()wp-includes/deprecated.php | Allows multiple block styles. |
WP_Theme_JSON_Resolver::theme_has_support()wp-includes/class-wp-theme-json-resolver.php | Determines whether the active theme has a theme.json file. |
WP_Theme_JSON_Resolver::get_fields_to_translate()wp-includes/class-wp-theme-json-resolver.php | Returns a data structure used in theme.json translation. |
the_block_template_skip_link()wp-includes/deprecated.php | Prints the skip-link script & styles. |
wp_add_iframed_editor_assets_html()wp-includes/deprecated.php | Inject the block editor assets that need to be loaded into the editor’s iframe as an inline script. |
wp_update_https_detection_errors()wp-includes/deprecated.php | Runs a remote HTTPS request to detect whether HTTPS supported, and stores potential errors. |
WP_REST_Application_Passwords_Controller::do_permissions_check()wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php | Performs a permissions check for the request. |
wp_img_tag_add_loading_attr()wp-includes/deprecated.php | Adds |
WP_REST_Meta_Fields::default_additional_properties_to_false()wp-includes/rest-api/fields/class-wp-rest-meta-fields.php | Recursively add additionalProperties = false to all objects in a schema if no additionalProperties setting is specified. |
WP_Privacy_Data_Export_Requests_Table::__construct()wp-admin/includes/deprecated.php | |
WP_Privacy_Data_Removal_Requests_Table::__construct()wp-admin/includes/deprecated.php | |
_excerpt_render_inner_columns_blocks()wp-includes/deprecated.php | Render inner blocks from the |
wp_sensitive_page_meta()wp-includes/deprecated.php | Display a |
WP_REST_Themes_Controller::sanitize_theme_status()wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php | Sanitizes and validates the list of theme status. |
WP_REST_Post_Search_Handler::detect_rest_item_route()wp-includes/rest-api/search/class-wp-rest-post-search-handler.php | Attempts to detect the route to access a single item. |
wp_get_user_request_data()wp-includes/deprecated.php | Return the user request object for the specified request ID. |
_wp_privacy_requests_screen_options()wp-admin/includes/deprecated.php | Was used to add options for the privacy requests screens before they were separate files. |
readonly()wp-includes/php-compat/readonly.php | Outputs the HTML readonly attribute. |
WP_REST_Settings_Controller::set_additional_properties_to_false()wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php | Recursively add additionalProperties = false to all objects in a schema if no additionalProperties setting is specified. |
WP_Customize_New_Menu_Section::__construct()wp-includes/customize/class-wp-customize-new-menu-section.php | Constructor. |
WP_Customize_New_Menu_Control::__construct()wp-includes/customize/class-wp-customize-new-menu-control.php | Constructor. |
WP_Community_Events::format_event_data_time()wp-admin/includes/class-wp-community-events.php | Adds formatted date and time items for each event in an API response. |
WP_Community_Events::maybe_log_events_response()wp-admin/includes/class-wp-community-events.php | Logs responses to Events API requests. |
_get_path_to_translation()wp-includes/deprecated.php | Gets the path to a translation file for loading a textdomain just in time. |
_get_path_to_translation_from_lang_dir()wp-includes/deprecated.php | Gets the path to a translation file in the languages directory for the current locale. |
WP_REST_Meta_Fields::register_field()wp-includes/rest-api/fields/class-wp-rest-meta-fields.php | Registers the meta field. |
_filter_query_attachment_filenames()wp-includes/deprecated.php | Filter the SQL clauses of an attachment query to include filenames. |
_wp_register_meta_args_whitelist()wp-includes/deprecated.php | Filters out |
WP_Metadata_Lazyloader::lazyload_term_meta()wp-includes/class-wp-metadata-lazyloader.php | Lazy-loads term meta for queued terms. |
WP_Metadata_Lazyloader::lazyload_comment_meta()wp-includes/class-wp-metadata-lazyloader.php | Lazy-loads comment meta for queued comments. |
WP_Scripts::print_inline_script()wp-includes/class-wp-scripts.php | Prints inline scripts registered for a specific handle. |
wp_queue_comments_for_comment_meta_lazyload()wp-includes/deprecated.php | Queues comments for metadata lazy-loading. |
WP_Query::lazyload_term_meta()wp-includes/class-wp-query.php | Lazyloads term meta for posts in the loop. |
WP_Query::lazyload_comment_meta()wp-includes/class-wp-query.php | Lazyloads comment meta for comments in the loop. |
print_embed_styles()wp-includes/deprecated.php | Prints the CSS in the embed iframe header. |
wp_make_content_images_responsive()wp-includes/deprecated.php | Filters ‘img’ elements in post content to add ‘srcset’ and ‘sizes’ attributes. |
WP_Customize_New_Menu_Control::render_content()wp-includes/customize/class-wp-customize-new-menu-control.php | Render the control’s content. |
WP_Customize_Nav_Menu_Setting::_sort_menus_by_orderby()wp-includes/customize/class-wp-customize-nav-menu-setting.php | Sort menu objects by the class-supplied orderby property. |
WP_Customize_Nav_Menus_Panel::wp_nav_menu_manage_columns()wp-includes/customize/class-wp-customize-nav-menus-panel.php | Returns the advanced options for the nav menus page. |
WP_Customize_New_Menu_Section::render()wp-includes/customize/class-wp-customize-new-menu-section.php | Render the section, and the controls that have been added to it. |
WP_Site_Icon::create_attachment_object()wp-admin/includes/class-wp-site-icon.php | Creates an attachment ‘object’. |
WP_Media_List_Table::column_desc()wp-admin/includes/class-wp-media-list-table.php | Handles the description column output. |
print_emoji_styles()wp-includes/deprecated.php | Prints the important emoji-related styles. |
the_meta()wp-includes/post-template.php | Displays a list of post custom fields. |
wp_ajax_press_this_add_category()wp-includes/deprecated.php | Ajax handler for creating new category from Press This. |
wp_ajax_press_this_save_post()wp-includes/deprecated.php | Ajax handler for saving a post from Press This. |
WP_Http::parse_url()wp-includes/class-wp-http.php | Used as a wrapper for PHP’s parse_url() function that handles edgecases in < PHP 5.4.7. |
WP_Customize_Manager::customize_preview_override_404_status()wp-includes/class-wp-customize-manager.php | Prevents sending a 404 status when returning the response for the customize preview, since it causes the jQuery Ajax to fail. Send 200 instead. |
post_form_autocomplete_off()wp-admin/includes/deprecated.php | Disables autocomplete on the ‘post’ form (Add/Edit Post screens) for WebKit browsers, as they disregard the autocomplete setting on the editor textarea. That can break the editor when the user navigates to it with the browser’s Back button. See #28037 |
logIO()xmlrpc.php | logIO() – Writes logging info to a file. |
_relocate_children()wp-admin/includes/deprecated.php | This was once used to move child posts to a new parent. |
get_post_to_edit()wp-admin/includes/deprecated.php | Gets an existing post and format it for editing. |
get_default_page_to_edit()wp-admin/includes/deprecated.php | Gets the default page information to use. |
wp_create_thumbnail()wp-admin/includes/deprecated.php | This was once used to create a thumbnail from an Image given a maximum side size. |
wp_nav_menu_locations_meta_box()wp-admin/includes/deprecated.php | This was once used to display a meta box for the nav menu theme locations. |
wp_update_core()wp-admin/includes/deprecated.php | This was once used to kick-off the Core Updater. |
wp_update_plugin()wp-admin/includes/deprecated.php | This was once used to kick-off the Plugin Updater. |
wp_update_theme()wp-admin/includes/deprecated.php | This was once used to kick-off the Theme Updater. |
the_attachment_links()wp-admin/includes/deprecated.php | This was once used to display attachment links. Now it is deprecated and stubbed. |
screen_icon()wp-admin/includes/deprecated.php | Displays a screen icon. |
get_screen_icon()wp-admin/includes/deprecated.php | Retrieves the screen icon (no longer used in 3.8+). |
wp_print_editor_js()wp-admin/includes/deprecated.php | Prints TinyMCE editor JS. |
wp_quicktags()wp-admin/includes/deprecated.php | Handles quicktags. |
screen_layout()wp-admin/includes/deprecated.php | Returns the screen layout options. |
screen_options()wp-admin/includes/deprecated.php | Returns the screen’s per-page options. |
favorite_actions()wp-admin/includes/deprecated.php | Favorite actions were deprecated in version 3.2. Use the admin bar instead. |
media_upload_image()wp-admin/includes/deprecated.php | Handles uploading an image. |
media_upload_audio()wp-admin/includes/deprecated.php | Handles uploading an audio file. |
media_upload_video()wp-admin/includes/deprecated.php | Handles uploading a video file. |
media_upload_file()wp-admin/includes/deprecated.php | Handles uploading a generic file. |
type_url_form_image()wp-admin/includes/deprecated.php | Handles retrieving the insert-from-URL form for an image. |
type_url_form_audio()wp-admin/includes/deprecated.php | Handles retrieving the insert-from-URL form for an audio file. |
type_url_form_video()wp-admin/includes/deprecated.php | Handles retrieving the insert-from-URL form for a video file. |
type_url_form_file()wp-admin/includes/deprecated.php | Handles retrieving the insert-from-URL form for a generic file. |
add_contextual_help()wp-admin/includes/deprecated.php | Add contextual help text for a page. |
get_allowed_themes()wp-admin/includes/deprecated.php | Get the allowed themes for the current site. |
get_broken_themes()wp-admin/includes/deprecated.php | Retrieves a list of broken themes. |
current_theme_info()wp-admin/includes/deprecated.php | Retrieves information on the current active theme. |
_insert_into_post_button()wp-admin/includes/deprecated.php | This was once used to display an ‘Insert into Post’ button. |
_media_button()wp-admin/includes/deprecated.php | This was once used to display a media button. |
dropdown_categories()wp-admin/includes/deprecated.php | Legacy function used to generate the categories checklist control. |
dropdown_link_categories()wp-admin/includes/deprecated.php | Legacy function used to generate a link categories checklist control. |
get_real_file_to_edit()wp-admin/includes/deprecated.php | Get the real filesystem path to a file to edit within the admin. |
wp_dropdown_cats()wp-admin/includes/deprecated.php | Legacy function used for generating a categories drop-down control. |
add_option_update_handler()wp-admin/includes/deprecated.php | Register a setting and its sanitization callback |
remove_option_update_handler()wp-admin/includes/deprecated.php | Unregister a setting |
codepress_get_lang()wp-admin/includes/deprecated.php | Determines the language to use for CodePress syntax highlighting. |
codepress_footer_js()wp-admin/includes/deprecated.php | Adds JavaScript required to make CodePress work on the theme/plugin file editors. |
use_codepress()wp-admin/includes/deprecated.php | Determine whether to use CodePress. |
get_author_user_ids()wp-admin/includes/deprecated.php | Get all user IDs. |
get_editable_authors()wp-admin/includes/deprecated.php | Gets author users who can edit posts. |
get_editable_user_ids()wp-admin/includes/deprecated.php | Gets the IDs of any users who can edit posts. |
get_nonauthor_user_ids()wp-admin/includes/deprecated.php | Gets all users who are not authors. |
get_others_unpublished_posts()wp-admin/includes/deprecated.php | Retrieves editable posts from other users. |
get_others_drafts()wp-admin/includes/deprecated.php | Retrieve drafts from other users. |
get_others_pending()wp-admin/includes/deprecated.php | Retrieve pending review posts from other users. |
wp_dashboard_quick_press_output()wp-admin/includes/deprecated.php | Output the QuickPress dashboard widget. |
wp_tiny_mce()wp-admin/includes/deprecated.php | Outputs the TinyMCE editor. |
wp_preload_dialogs()wp-admin/includes/deprecated.php | Preloads TinyMCE dialogs. |
install_themes_feature_list()wp-admin/includes/theme-install.php | Retrieves the list of WordPress theme features (aka theme tags). |
display_theme()wp-admin/includes/theme-install.php | Prints a theme on the Install Themes pages. |
tinymce_include()wp-admin/includes/deprecated.php | |
documentation_link()wp-admin/includes/deprecated.php | Unused Admin function. |
wp_shrink_dimensions()wp-admin/includes/deprecated.php | Calculates the new dimensions for a downsampled image. |
get_udims()wp-admin/includes/deprecated.php | Calculated the new dimensions for a downsampled image. |
sync_category_tag_slugs()wp-admin/includes/ms-deprecated.php | Synchronizes category and post tag slugs when global terms are enabled. |
update_user_status()wp-includes/ms-deprecated.php | Update the status of a user in the database. |
WP_Filesystem_Base::find_base_dir()wp-admin/includes/class-wp-filesystem-base.php | Locates a folder on the remote filesystem. |
WP_Filesystem_Base::get_base_dir()wp-admin/includes/class-wp-filesystem-base.php | Locates a folder on the remote filesystem. |
wp_dashboard_plugins_output()wp-admin/includes/deprecated.php | Display plugins text for the WordPress news widget. |
install_global_terms()wp-admin/includes/ms-deprecated.php | Install global terms. |
add_option_whitelist()wp-includes/deprecated.php | Adds an array of options to the list of allowed options. |
remove_option_whitelist()wp-includes/deprecated.php | Removes a list of options from the allowed options list. |
add_object_page()wp-admin/includes/deprecated.php | Add a top-level menu page in the ‘objects’ section. |
add_utility_page()wp-admin/includes/deprecated.php | Add a top-level menu page in the ‘utility’ section. |
image_attachment_fields_to_save()wp-admin/includes/deprecated.php | Was used to filter input from media_upload_form_handler() and to assign a default post_title from the file name if none supplied. |
wpmu_menu()wp-admin/includes/ms-deprecated.php | Outputs the WPMU menu. |
wpmu_checkAvailableSpace()wp-admin/includes/ms-deprecated.php | Determines if the available space defined by the admin has been exceeded by the user. |
mu_options()wp-admin/includes/ms-deprecated.php | WPMU options. |
activate_sitewide_plugin()wp-admin/includes/ms-deprecated.php | Deprecated functionality for activating a network-only plugin. |
deactivate_sitewide_plugin()wp-admin/includes/ms-deprecated.php | Deprecated functionality for deactivating a network-only plugin. |
is_wpmu_sitewide_plugin()wp-admin/includes/ms-deprecated.php | Deprecated functionality for determining if the current plugin is network-only. |
get_site_allowed_themes()wp-admin/includes/ms-deprecated.php | Deprecated functionality for getting themes network-enabled themes. |
wpmu_get_blog_allowedthemes()wp-admin/includes/ms-deprecated.php | Deprecated functionality for getting themes allowed on a specific site. |
Custom_Image_Header::create_attachment_object()wp-admin/includes/class-custom-image-header.php | Creates an attachment ‘object’. |
WP_User::for_blog()wp-includes/class-wp-user.php | Sets the site to operate on. Defaults to the current site. |
WP_User::_init_caps()wp-includes/class-wp-user.php | Sets up capability object properties. |
WP_Roles::_init()wp-includes/class-wp-roles.php | Sets up the object properties. |
WP_Roles::reinit()wp-includes/class-wp-roles.php | Reinitializes the object. |
WP_Customize_Manager::_cmp_priority()wp-includes/class-wp-customize-manager.php | Helper function to compare two objects by priority, ensuring sort stability via instance_number. |
WP_Customize_Manager::customize_preview_base()wp-includes/class-wp-customize-manager.php | Prints base element for preview frame. |
WP_Customize_Manager::customize_preview_html5()wp-includes/class-wp-customize-manager.php | Prints a workaround to handle HTML5 tags in IE < 9. |
WP_Customize_Manager::customize_preview_signature()wp-includes/class-wp-customize-manager.php | Prints a signature so we can ensure the Customizer was properly executed. |
WP_Customize_Manager::remove_preview_signature()wp-includes/class-wp-customize-manager.php | Removes the signature in case we experience a case where the Customizer was not properly executed. |
WP_Customize_Manager::wp_die_handler()wp-includes/class-wp-customize-manager.php | Returns the Ajax wp_die() handler if it’s a customized request. |
WP_Customize_Manager::wp_redirect_status()wp-includes/class-wp-customize-manager.php | Prevents Ajax requests from following redirects when previewing a theme by issuing a 200 response instead of a 30x. |
WP_Object_Cache::reset()wp-includes/class-wp-object-cache.php | Resets cache keys. |
wp_cache_reset()wp-includes/cache.php | Resets internal cache keys and structures. |
_usort_terms_by_ID()wp-includes/deprecated.php | Sort categories by ID. |
_usort_terms_by_name()wp-includes/deprecated.php | Sort categories by name. |
preview_theme()wp-includes/deprecated.php | Start preview theme output buffer. |
_preview_theme_template_filter()wp-includes/deprecated.php | Private function to modify the current template when previewing a theme |
_preview_theme_stylesheet_filter()wp-includes/deprecated.php | Private function to modify the current stylesheet when previewing a theme |
preview_theme_ob_filter()wp-includes/deprecated.php | Callback function for ob_start() to capture all links in the theme. |
preview_theme_ob_filter_callback()wp-includes/deprecated.php | Manipulates preview theme links in order to control and maintain location. |
like_escape()wp-includes/deprecated.php | Formerly used to escape strings before searching the DB. It was poorly documented and never worked as described. |
wp_htmledit_pre()wp-includes/deprecated.php | Formats text for the HTML editor. |
wp_richedit_pre()wp-includes/deprecated.php | Formats text for the rich text editor. |
popuplinks()wp-includes/deprecated.php | Adds element attributes to open links in new tabs. |
get_currentuserinfo()wp-includes/pluggable-deprecated.php | Populate global variables with information about the currently logged in user. |
noindex()wp-includes/deprecated.php | Displays a |
wp_no_robots()wp-includes/deprecated.php | Display a |
wlwmanifest_link()wp-includes/deprecated.php | Displays the link to the Windows Live Writer manifest file. |
gd_edit_image_support()wp-includes/deprecated.php | Check if the installed version of GD supports particular image type |
wp_convert_bytes_to_hr()wp-includes/deprecated.php | Converts an integer byte value to a shorthand byte value. |
_search_terms_tidy()wp-includes/deprecated.php | Formerly used internally to tidy up the search terms. |
rich_edit_exists()wp-includes/deprecated.php | Determine if TinyMCE is available. |
format_to_post()wp-includes/deprecated.php | Formerly used to escape strings before inserting into the DB. |
clean_pre()wp-includes/deprecated.php | Accepts matches array from preg_replace_callback in wpautop() or a string. |
add_custom_image_header()wp-includes/deprecated.php | Add callbacks for image header display. |
remove_custom_image_header()wp-includes/deprecated.php | Remove image header support. |
add_custom_background()wp-includes/deprecated.php | Add callbacks for background image display. |
remove_custom_background()wp-includes/deprecated.php | Remove custom background support. |
get_theme_data()wp-includes/deprecated.php | Retrieve theme data from parsed theme file. |
update_page_cache()wp-includes/deprecated.php | Alias of update_post_cache() . |
clean_page_cache()wp-includes/deprecated.php | Will clean the page in the cache. |
wp_explain_nonce()wp-includes/deprecated.php | Retrieve nonce action “Are you sure” message. |
sticky_class()wp-includes/deprecated.php | Display “sticky” CSS class, if a post is sticky. |
_get_post_ancestors()wp-includes/deprecated.php | Retrieve post ancestors. |
wp_load_image()wp-includes/deprecated.php | Load an image from a string, if PHP supports it. |
image_resize()wp-includes/deprecated.php | Scale down an image to fit a particular size and save a new copy of the image. |
wp_get_single_post()wp-includes/deprecated.php | Retrieve a single post, based on post ID. |
user_pass_ok()wp-includes/deprecated.php | Check that the user login name and password is correct. |
get_user_metavalues()wp-includes/deprecated.php | Perform the query to get the $metavalues array(s) needed by _fill_user and _fill_many_users |
sanitize_user_object()wp-includes/deprecated.php | Sanitize every user field. |
get_boundary_post_rel_link()wp-includes/deprecated.php | Get boundary post relational link. |
start_post_rel_link()wp-includes/deprecated.php | Display relational link for the first post. |
get_index_rel_link()wp-includes/deprecated.php | Get site index relational link. |
index_rel_link()wp-includes/deprecated.php | Display relational link for the site index. |
get_parent_post_rel_link()wp-includes/deprecated.php | Get parent post relational link. |
parent_post_rel_link()wp-includes/deprecated.php | Display relational link for parent item |
wp_admin_bar_dashboard_view_site_menu()wp-includes/deprecated.php | Add the “Dashboard”/”Visit Site” menu. |
is_blog_user()wp-includes/deprecated.php | Checks if the current user belong to a given site. |
debug_fopen()wp-includes/deprecated.php | Open the file handle for debugging. |
debug_fwrite()wp-includes/deprecated.php | Write contents to the file used for debugging. |
debug_fclose()wp-includes/deprecated.php | Close the debugging file handle. |
get_themes()wp-includes/deprecated.php | Retrieve list of themes with theme data in theme directory. |
get_theme()wp-includes/deprecated.php | Retrieve theme data. |
get_current_theme()wp-includes/deprecated.php | Retrieve current theme name. |
register_widget_control()wp-includes/deprecated.php | Registers widget control callback for customizing options. |
unregister_widget_control()wp-includes/deprecated.php | Alias of wp_unregister_widget_control() . |
delete_usermeta()wp-includes/deprecated.php | Remove user meta data. |
get_usermeta()wp-includes/deprecated.php | Retrieve user metadata. |
update_usermeta()wp-includes/deprecated.php | Update metadata of user. |
get_users_of_blog()wp-includes/deprecated.php | Get users for the site. |
automatic_feed_links()wp-includes/deprecated.php | Enable/disable automatic general feed link outputting. |
get_profile()wp-includes/deprecated.php | Retrieve user data based on field. |
get_usernumposts()wp-includes/deprecated.php | Retrieves the number of posts a user has written. |
funky_javascript_fix()wp-includes/deprecated.php | Fixes JavaScript bugs in browsers. |
is_taxonomy()wp-includes/deprecated.php | Checks that the taxonomy name exists. |
is_term()wp-includes/deprecated.php | Check if Term exists. |
is_plugin_page()wp-includes/deprecated.php | Determines whether the current admin page is generated by a plugin. |
update_category_cache()wp-includes/deprecated.php | Update the categories cache. |
wp_timezone_supported()wp-includes/deprecated.php | Check for PHP timezone support |
the_editor()wp-includes/deprecated.php | Displays an editor: TinyMCE, HTML, or both. |
__ngettext()wp-includes/deprecated.php | Retrieve the plural or single form based on the amount. |
__ngettext_noop()wp-includes/deprecated.php | Register plural strings in POT file, but don’t translate them. |
get_alloptions()wp-includes/deprecated.php | Retrieve all autoload options, or all options if no autoloaded ones exist. |
get_the_attachment_link()wp-includes/deprecated.php | Retrieve HTML content of attachment image with link. |
get_attachment_icon_src()wp-includes/deprecated.php | Retrieve icon URL and Path. |
get_attachment_icon()wp-includes/deprecated.php | Retrieve HTML content of icon attachment image element. |
get_attachment_innerHTML()wp-includes/deprecated.php | Retrieve HTML content of image element. |
get_link()wp-includes/deprecated.php | Retrieves bookmark data based on ID. |
clean_url()wp-includes/deprecated.php | Checks and cleans a URL. |
js_escape()wp-includes/deprecated.php | Escape single quotes, specialchar double quotes, and fix line endings. |
wp_specialchars()wp-includes/deprecated.php | Legacy escaping for HTML blocks. |
attribute_escape()wp-includes/deprecated.php | Escaping for HTML attributes. |
register_sidebar_widget()wp-includes/deprecated.php | Register widget for sidebar with backward compatibility. |
unregister_sidebar_widget()wp-includes/deprecated.php | Serves as an alias of wp_unregister_sidebar_widget() . |
get_the_author_icq()wp-includes/deprecated.php | Retrieve the ICQ number of the author of the current post. |
the_author_icq()wp-includes/deprecated.php | Display the ICQ number of the author of the current post. |
get_the_author_yim()wp-includes/deprecated.php | Retrieve the Yahoo! IM name of the author of the current post. |
the_author_yim()wp-includes/deprecated.php | Display the Yahoo! IM name of the author of the current post. |
get_the_author_msn()wp-includes/deprecated.php | Retrieve the MSN address of the author of the current post. |
the_author_msn()wp-includes/deprecated.php | Display the MSN address of the author of the current post. |
get_the_author_aim()wp-includes/deprecated.php | Retrieve the AIM address of the author of the current post. |
the_author_aim()wp-includes/deprecated.php | Display the AIM address of the author of the current post. |
get_author_name()wp-includes/deprecated.php | Retrieve the specified author’s preferred display name. |
get_the_author_url()wp-includes/deprecated.php | Retrieve the URL to the home page of the author of the current post. |
the_author_url()wp-includes/deprecated.php | Display the URL to the home page of the author of the current post. |
get_the_author_ID()wp-includes/deprecated.php | Retrieve the ID of the author of the current post. |
the_author_ID()wp-includes/deprecated.php | Display the ID of the author of the current post. |
make_url_footnote()wp-includes/deprecated.php | Strip HTML and put links at the bottom of stripped content. |
_c()wp-includes/deprecated.php | Retrieve translated string with vertical bar context |
the_content_rss()wp-includes/deprecated.php | Display the post content for the feed. |
translate_with_context()wp-includes/deprecated.php | Translates $text like translate() , but assumes that the text contains a context after its last vertical bar. |
_nc()wp-includes/deprecated.php | Legacy version of _n() , which supports contexts. |
get_author_rss_link()wp-includes/deprecated.php | Print/Return link to author RSS feed. |
comments_rss()wp-includes/deprecated.php | Return link to the post RSS feed. |
create_user()wp-includes/deprecated.php | An alias of wp_create_user() . |
gzip_compression()wp-includes/deprecated.php | Unused function. |
get_commentdata()wp-includes/deprecated.php | Retrieve an array of comment data about comment $comment_id. |
get_catname()wp-includes/deprecated.php | Retrieve the category name by the category ID. |
get_category_children()wp-includes/deprecated.php | Retrieve category children list separated before and after the term IDs. |
get_the_author_description()wp-includes/deprecated.php | Retrieve the description of the author of the current post. |
the_author_description()wp-includes/deprecated.php | Display the description of the author of the current post. |
get_the_author_login()wp-includes/deprecated.php | Retrieve the login name of the author of the current post. |
the_author_login()wp-includes/deprecated.php | Display the login name of the author of the current post. |
get_the_author_firstname()wp-includes/deprecated.php | Retrieve the first name of the author of the current post. |
the_author_firstname()wp-includes/deprecated.php | Display the first name of the author of the current post. |
get_the_author_lastname()wp-includes/deprecated.php | Retrieve the last name of the author of the current post. |
the_author_lastname()wp-includes/deprecated.php | Display the last name of the author of the current post. |
get_the_author_nickname()wp-includes/deprecated.php | Retrieve the nickname of the author of the current post. |
the_author_nickname()wp-includes/deprecated.php | Display the nickname of the author of the current post. |
get_the_author_email()wp-includes/deprecated.php | Retrieve the email of the author of the current post. |
the_author_email()wp-includes/deprecated.php | Display the email of the author of the current post. |
dropdown_cats()wp-includes/deprecated.php | Deprecated method for generating a drop-down of categories. |
list_authors()wp-includes/deprecated.php | Lists authors. |
wp_get_post_cats()wp-includes/deprecated.php | Retrieves a list of post categories. |
wp_set_post_cats()wp-includes/deprecated.php | Sets the categories that the post ID belongs to. |
get_archives()wp-includes/deprecated.php | Retrieves a list of archives. |
get_author_link()wp-includes/deprecated.php | Returns or Prints link to the author’s posts. |
link_pages()wp-includes/deprecated.php | Print list of pages based on arguments. |
get_settings()wp-includes/deprecated.php | Get value based on option. |
permalink_link()wp-includes/deprecated.php | Print the permalink of the current post in the loop. |
permalink_single_rss()wp-includes/deprecated.php | Print the permalink to the RSS feed. |
wp_get_links()wp-includes/deprecated.php | Gets the links associated with category. |
get_links()wp-includes/deprecated.php | Gets the links associated with category by ID. |
get_links_list()wp-includes/deprecated.php | Output entire list of links by category. |
links_popup_script()wp-includes/deprecated.php | Show the link to the links popup and the number of links. |
get_linkrating()wp-includes/deprecated.php | Legacy function that retrieved the value of a link’s link_rating field. |
get_linkcatname()wp-includes/deprecated.php | Gets the name of category by ID. |
comments_rss_link()wp-includes/deprecated.php | Print RSS comment feed link. |
get_category_rss_link()wp-includes/deprecated.php | Print/Return link to category RSS2 feed. |
user_can_create_post()wp-includes/deprecated.php | Whether user can create a post. |
user_can_create_draft()wp-includes/deprecated.php | Whether user can create a post. |
user_can_edit_post()wp-includes/deprecated.php | Whether user can edit a post. |
user_can_delete_post()wp-includes/deprecated.php | Whether user can delete a post. |
user_can_set_post_date()wp-includes/deprecated.php | Whether user can set new posts’ dates. |
user_can_edit_post_date()wp-includes/deprecated.php | Whether user can delete a post. |
user_can_edit_post_comments()wp-includes/deprecated.php | Whether user can delete a post. |
user_can_delete_post_comments()wp-includes/deprecated.php | Whether user can delete a post. |
user_can_edit_user()wp-includes/deprecated.php | Can user can edit other user. |
get_linksbyname()wp-includes/deprecated.php | Gets the links associated with category $cat_name. |
wp_get_linksbyname()wp-includes/deprecated.php | Gets the links associated with the named category. |
get_linkobjectsbyname()wp-includes/deprecated.php | Gets an array of link objects associated with category $cat_name. |
get_linkobjects()wp-includes/deprecated.php | Gets an array of link objects associated with category n. |
get_linksbyname_withrating()wp-includes/deprecated.php | Gets the links associated with category ‘cat_name’ and display rating stars/chars. |
get_links_withrating()wp-includes/deprecated.php | Gets the links associated with category n and display rating stars/chars. |
get_autotoggle()wp-includes/deprecated.php | Gets the auto_toggle setting. |
list_cats()wp-includes/deprecated.php | Lists categories. |
wp_list_cats()wp-includes/deprecated.php | Lists categories. |
get_postdata()wp-includes/deprecated.php | Retrieves all post data for a given post. |
start_wp()wp-includes/deprecated.php | Sets up the WordPress Loop. |
the_category_ID()wp-includes/deprecated.php | Returns or prints a category ID. |
the_category_head()wp-includes/deprecated.php | Prints a category with optional text before and after. |
previous_post()wp-includes/deprecated.php | Prints a link to the previous post. |
next_post()wp-includes/deprecated.php | Prints link to the next post. |
wp_kses_js_entities()wp-includes/deprecated.php | Removes the HTML JavaScript entities found in early versions of Netscape 4. |
WP_Query::is_comments_popup()wp-includes/class-wp-query.php | Determines whether the current URL is within the comments popup window. |
is_comments_popup()wp-includes/deprecated.php | Determines whether the current URL is within the comments popup window. |
get_all_category_ids()wp-includes/deprecated.php | Retrieves all category IDs. |
wp_unregister_GLOBALS()wp-includes/deprecated.php | Turn register globals off. |
force_ssl_login()wp-includes/deprecated.php | Whether SSL login should be forced. |
global_terms_enabled()wp-includes/deprecated.php | Determines whether global terms are enabled. |
url_is_accessable_via_ssl()wp-includes/deprecated.php | Determines if the URL can be accessed over SSL. |
wp_get_http()wp-includes/deprecated.php | Perform a HTTP HEAD or GET request. |
WP_Widget_Recent_Comments::flush_widget_cache()wp-includes/widgets/class-wp-widget-recent-comments.php | Flushes the Recent Comments widget cache. |
get_shortcut_link()wp-includes/deprecated.php | Retrieves the Press This bookmarklet link. |
post_permalink()wp-includes/deprecated.php | Retrieve permalink from post ID. |
WP_Admin_Bar::recursive_render()wp-includes/class-wp-admin-bar.php | Renders toolbar items recursively. |
wp_admin_bar_header()wp-includes/deprecated.php | Prints style and scripts for the admin bar. |
_admin_bar_bump_cb()wp-includes/deprecated.php | Prints default admin bar callback. |
WP_Customize_Setting::_update_theme_mod()wp-includes/class-wp-customize-setting.php | Deprecated method. |
WP_Customize_Setting::_update_option()wp-includes/class-wp-customize-setting.php | Deprecated method. |
wp_atom_server::__call()wp-includes/pluggable-deprecated.php | |
wp_atom_server::__callStatic()wp-includes/pluggable-deprecated.php | |
set_current_user()wp-includes/pluggable-deprecated.php | Changes the current user by ID or name. |
get_userdatabylogin()wp-includes/pluggable-deprecated.php | Retrieve user info by login name. |
get_user_by_email()wp-includes/pluggable-deprecated.php | Retrieve user info by email. |
wp_setcookie()wp-includes/pluggable-deprecated.php | Sets a cookie for a user who just logged in. This function is deprecated. |
wp_clearcookie()wp-includes/pluggable-deprecated.php | Clears the authentication cookie, logging the user out. This function is deprecated. |
wp_get_cookie_login()wp-includes/pluggable-deprecated.php | Gets the user cookie login. This function is deprecated. |
wp_login()wp-includes/pluggable-deprecated.php | Checks a users login information and logs them in if it checks out. This function is deprecated. |
get_comments_popup_template()wp-includes/deprecated.php | Retrieve path of comment popup template in current or parent template. |
get_paged_template()wp-includes/deprecated.php | Retrieve path of paged template in current or parent template. |
wp_embed_handler_googlevideo()wp-includes/deprecated.php | The Google Video embed handler callback. |
wp_get_attachment_thumb_file()wp-includes/deprecated.php | Retrieves thumbnail for an attachment. |
get_page_by_title()wp-includes/deprecated.php | Retrieves a page given its title. |
wp_get_sites()wp-includes/ms-deprecated.php | Return an array of sites for a network or networks. |
is_user_option_local()wp-includes/ms-deprecated.php | Check whether a usermeta key has to do with the current blog. |
global_terms()wp-includes/ms-deprecated.php | Maintains a canonical list of terms by syncing terms created for each blog with the global terms table. |
insert_blog()wp-includes/ms-deprecated.php | Store basic site info in the blogs table. |
install_blog()wp-includes/ms-deprecated.php | Install an empty blog. |
install_blog_defaults()wp-includes/ms-deprecated.php | Set blog defaults. |
create_empty_blog()wp-includes/ms-deprecated.php | Create an empty blog. |
get_admin_users_for_domain()wp-includes/ms-deprecated.php | Get the admin for a domain/path combination. |
get_current_site_name()wp-includes/ms-load.php | This deprecated function formerly set the site_name property of the $current_site object. |
wpmu_current_site()wp-includes/ms-load.php | This deprecated function managed much of the site and network loading in multisite. |
wp_get_network()wp-includes/ms-load.php | Retrieves an object containing information about the requested network. |
generate_random_password()wp-includes/ms-deprecated.php | Generates a random password. |
is_site_admin()wp-includes/ms-deprecated.php | Determine if user is a site admin. |
graceful_fail()wp-includes/ms-deprecated.php | Deprecated functionality to gracefully fail. |
get_user_details()wp-includes/ms-deprecated.php | Deprecated functionality to retrieve user information. |
clear_global_post_cache()wp-includes/ms-deprecated.php | Deprecated functionality to clear the global post cache. |
is_main_blog()wp-includes/ms-deprecated.php | Deprecated functionality to determine if the current site is the main site. |
validate_email()wp-includes/ms-deprecated.php | Deprecated functionality to validate an email address. |
get_blog_list()wp-includes/ms-deprecated.php | Deprecated functionality to retrieve a list of all sites. |
get_most_active_blogs()wp-includes/ms-deprecated.php | Deprecated functionality to retrieve a list of the most active sites. |
wpmu_admin_do_redirect()wp-includes/ms-deprecated.php | Redirect a user based on $_GET or $_POST arguments. |
wpmu_admin_redirect_add_updated_param()wp-includes/ms-deprecated.php | Adds an ‘updated=true’ argument to a URL. |
get_user_id_from_string()wp-includes/ms-deprecated.php | Get a numeric user ID from either an email address or a login. |
get_blogaddress_by_domain()wp-includes/ms-deprecated.php | Get a full site URL, given a domain and a path. |
get_dashboard_blog()wp-includes/ms-deprecated.php | Get the “dashboard blog”, the blog where users without a blog edit their profile data. |
WP_Scripts::print_scripts_l10n()wp-includes/class-wp-scripts.php | Prints extra scripts of a registered script. |
_sort_nav_menu_items()wp-includes/deprecated.php | Sort menu items by the desired key. |
WP_Customize_Image_Control::add_tab()wp-includes/customize/class-wp-customize-image-control.php | |
WP_Customize_Image_Control::remove_tab()wp-includes/customize/class-wp-customize-image-control.php | |
WP_Customize_Image_Control::print_tab_image()wp-includes/customize/class-wp-customize-image-control.php | |
wpdb::supports_collation()wp-includes/class-wpdb.php | Determines whether the database supports collation. |
wpdb::_weak_escape()wp-includes/class-wpdb.php | Do not use, deprecated. |
wpdb::escape()wp-includes/class-wpdb.php | Do not use, deprecated. |
comments_popup_script()wp-includes/deprecated.php | Display the JS popup script to show a comment. |
WP_Customize_Widgets::setup_widget_addition_previews()wp-includes/class-wp-customize-widgets.php | {@internal Missing Summary} |
WP_Customize_Widgets::prepreview_added_sidebars_widgets()wp-includes/class-wp-customize-widgets.php | {@internal Missing Summary} |
WP_Customize_Widgets::prepreview_added_widget_instance()wp-includes/class-wp-customize-widgets.php | {@internal Missing Summary} |
WP_Customize_Widgets::remove_prepreview_filters()wp-includes/class-wp-customize-widgets.php | {@internal Missing Summary} |
wp_blacklist_check()wp-includes/deprecated.php | Does comment contain disallowed characters or words. |
_WP_Editors::wp_fullscreen_html()wp-includes/class-wp-editor.php | Outputs the HTML for distraction-free writing mode. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.