is_utf8_charset()wp-includes/functions.php | Indicates if a given slug for a character set represents the UTF-8 text encoding. If not provided, examines the current blog’s charset.
|
wp_get_plugin_action_button()wp-admin/includes/plugin-install.php | Gets the markup for the plugin install action button.
|
get_options()wp-includes/option.php | Retrieves multiple options.
|
wp_delete_all_temp_backups()wp-includes/update.php | Schedules the removal of all contents in the temporary backup directory.
|
IXR_Server::output()wp-includes/IXR/class-IXR-server.php | |
_resolve_home_block_template()wp-includes/deprecated.php | Returns the correct template for the site’s home page.
|
build_comment_query_vars_from_block()wp-includes/blocks.php | Helper function that constructs a comment query vars array from the passed block properties.
|
WP_REST_Server::add_site_icon_to_index()wp-includes/rest-api/class-wp-rest-server.php | Exposes the site icon through the WordPress REST API.
|
WP_REST_Menus_Controller::get_menu_auto_add()wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php | Returns the value of a menu’s auto_add setting.
|
WP_REST_Menus_Controller::handle_auto_add()wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php | Updates the menu’s auto add from a REST request.
|
get_block_editor_settings()wp-includes/block-editor.php | Returns the contextualized block editor settings for a selected editor context.
|
get_default_block_editor_settings()wp-includes/block-editor.php | Returns the default block editor settings.
|
build_query_vars_from_query_block()wp-includes/blocks.php | Helper function that constructs a WP_Query args array from a Query block properties.
|
deactivated_plugins_notice()wp-admin/includes/plugin.php | Renders an admin notice when a plugin was deactivated during an update.
|
wp_robots_noindex()wp-includes/robots-template.php | Adds noindex to the robots meta tag if required by the site configuration.
|
wp_robots_no_robots()wp-includes/robots-template.php | Adds noindex to the robots meta tag.
|
wp_robots_max_image_preview_large()wp-includes/robots-template.php | Adds max-image-preview:large to the robots meta tag.
|
wp_is_site_url_using_https()wp-includes/https-detection.php | Checks whether the current site’s URL where WordPress is stored is using HTTPS.
|
wp_is_https_supported()wp-includes/https-detection.php | Checks whether HTTPS is supported for the server and domain.
|
wp_should_replace_insecure_home_url()wp-includes/https-migration.php | Checks whether WordPress should replace old HTTP URLs to the site with their HTTPS counterpart.
|
wp_update_urls_to_https()wp-includes/https-migration.php | Update the ‘home’ and ‘siteurl’ option to use the HTTPS variant of their URL.
|
wp_update_https_migration_required()wp-includes/https-migration.php | Updates the ‘https_migration_required’ option if needed when the given URL has been updated from HTTP to HTTPS.
|
get_media_states()wp-admin/includes/template.php | Retrieves an array of media states from an attachment.
|
_wp_batch_update_comment_type()wp-includes/comment.php | Updates the comment type for a batch of comments.
|
wp_check_comment_disallowed_list()wp-includes/comment.php | Checks if a comment contains disallowed characters or words.
|
WP_Sitemaps::sitemaps_enabled()wp-includes/sitemaps/class-wp-sitemaps.php | Determines whether sitemaps are enabled or not.
|
WP_Sitemaps_Posts::get_url_list()wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php | Gets a URL list for a post type sitemap.
|
WP_Sitemaps_Posts::get_max_num_pages()wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php | Gets the max number of pages available for the object type.
|
WP_Automatic_Updater::send_plugin_theme_email()wp-admin/includes/class-wp-automatic-updater.php | Sends an email upon the completion or failure of a plugin or theme background update.
|
wp_timezone_string()wp-includes/functions.php | Retrieves the timezone of the site as a string.
|
get_post_states()wp-admin/includes/template.php | Retrieves an array of post states from a post.
|
WP_Recovery_Mode_Key_Service::get_keys()wp-includes/class-wp-recovery-mode-key-service.php | Gets the recovery key records.
|
WP_Recovery_Mode_Email_Service::maybe_send_recovery_mode_email()wp-includes/class-wp-recovery-mode-email-service.php | Sends the recovery mode email if the rate limit has not been sent.
|
WP_Recovery_Mode_Email_Service::send_recovery_mode_email()wp-includes/class-wp-recovery-mode-email-service.php | Sends the Recovery Mode email to the site admin email address.
|
WP_Recovery_Mode_Email_Service::get_recovery_mode_email_address()wp-includes/class-wp-recovery-mode-email-service.php | Gets the email address to send the recovery mode link to.
|
WP_Query::is_privacy_policy()wp-includes/class-wp-query.php | Determines whether the query is for the Privacy Policy page.
|
WP_Paused_Extensions_Storage::set()wp-includes/class-wp-paused-extensions-storage.php | Records an extension error.
|
WP_Paused_Extensions_Storage::delete()wp-includes/class-wp-paused-extensions-storage.php | Forgets a previously recorded extension error.
|
WP_Paused_Extensions_Storage::get_all()wp-includes/class-wp-paused-extensions-storage.php | Gets the paused extensions with their errors.
|
WP_Paused_Extensions_Storage::delete_all()wp-includes/class-wp-paused-extensions-storage.php | Remove all paused extensions.
|
WP_Debug_Data::debug_data()wp-admin/includes/class-wp-debug-data.php | Static function for generating site debug data when required.
|
populate_network_meta()wp-admin/includes/schema.php | Creates WordPress network meta and sets the default values.
|
wp_check_term_meta_support_prefilter()wp-includes/taxonomy.php | Aborts calls to term meta if it is not supported.
|
wp_default_packages_vendor()wp-includes/script-loader.php | Registers all the WordPress vendor scripts that are in the standardized js/dist/vendor/ location.
|
wp_default_packages_inline_scripts()wp-includes/script-loader.php | Adds inline scripts required for the WordPress JavaScript packages.
|
_wp_privacy_send_request_confirmation_notification()wp-includes/user.php | Notifies the site administrator via email when a request is confirmed.
|
_wp_privacy_send_erasure_fulfillment_notification()wp-includes/user.php | Notifies the user when their erasure request is fulfilled.
|
wp_send_user_request()wp-includes/user.php | Send a confirmation request email to confirm an action.
|
get_the_privacy_policy_link()wp-includes/link-template.php | Returns the privacy policy link with formatting, when applicable.
|
get_privacy_policy_url()wp-includes/link-template.php | Retrieves the URL to the privacy policy page.
|
WP_Privacy_Policy_Content::get_suggested_policy_text()wp-admin/includes/class-wp-privacy-policy-content.php | Checks for updated, added or removed privacy policy information from plugins.
|
WP_Privacy_Policy_Content::notice()wp-admin/includes/class-wp-privacy-policy-content.php | Adds a notice with a link to the guide when editing the privacy policy page.
|
WP_Privacy_Policy_Content::text_change_check()wp-admin/includes/class-wp-privacy-policy-content.php | Performs a quick check to determine whether any privacy info has changed.
|
WP_Privacy_Policy_Content::_policy_page_updated()wp-admin/includes/class-wp-privacy-policy-content.php | Updates the cached policy info when the policy page is updated.
|
wp_privacy_send_personal_data_export_email()wp-admin/includes/privacy-tools.php | Send an email to the user with a link to the personal data export file
|
WP_Privacy_Requests_Table::get_timestamp_as_date()wp-admin/includes/class-wp-privacy-requests-table.php | Converts a timestamp for display.
|
WP_Roles::get_roles_data()wp-includes/class-wp-roles.php | Gets the available roles data.
|
_wp_menus_changed()wp-includes/nav-menu.php | Handles menu config after theme change.
|
wp_site_admin_email_change_notification()wp-includes/functions.php | Sends an email to the old site admin email address when the site admin email address changes.
|
WP_Customize_Date_Time_Control::content_template()wp-includes/customize/class-wp-customize-date-time-control.php | Renders a JS template for the content of date time control.
|
WP_Customize_Date_Time_Control::get_timezone_info()wp-includes/customize/class-wp-customize-date-time-control.php | Get timezone info.
|
wp_edit_theme_plugin_file()wp-admin/includes/file.php | Attempts to edit a file for a theme or plugin.
|
wp_localize_community_events()wp-includes/script-loader.php | Localizes community events data that needs to be passed to dashboard.js.
|
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_Customize_Manager::update_stashed_theme_mod_settings()wp-includes/class-wp-customize-manager.php | Updates stashed theme mod settings.
|
WP_Customize_Manager::import_theme_starter_content()wp-includes/class-wp-customize-manager.php | Imports theme starter content into the customized state.
|
WP_REST_Users_Controller::get_item_schema()wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php | Retrieves the user’s schema, conforming to JSON Schema.
|
WP_REST_Settings_Controller::get_item()wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php | Retrieves the settings.
|
WP_REST_Settings_Controller::update_item()wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php | Updates settings for the settings object.
|
WP_REST_Posts_Controller::prepare_item_for_response()wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php | Prepares a single post output for response.
|
WP_REST_Posts_Controller::get_items()wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php | Retrieves a collection of posts.
|
WP_REST_Comments_Controller::get_item_schema()wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php | Retrieves the comment’s schema, conforming to JSON Schema.
|
WP_REST_Comments_Controller::create_item_permissions_check()wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php | Checks if a given request has access to create a comment.
|
WP_REST_Comments_Controller::create_item()wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php | Creates a comment.
|
WP_Taxonomy::set_props()wp-includes/class-wp-taxonomy.php | Sets taxonomy properties.
|
WP_Taxonomy::add_rewrite_rules()wp-includes/class-wp-taxonomy.php | Adds the necessary rewrite rules for the taxonomy.
|
wp_localize_jquery_ui_datepicker()wp-includes/script-loader.php | Localizes the jQuery UI datepicker.
|
WP_Post_Type::add_rewrite_rules()wp-includes/class-wp-post-type.php | Adds the necessary rewrite rules for the post type.
|
WP_Post_Type::set_props()wp-includes/class-wp-post-type.php | Sets post type properties.
|
WP_Site::get_details()wp-includes/class-wp-site.php | Retrieves the details for this site.
|
wp_get_canonical_url()wp-includes/link-template.php | Returns the canonical URL for a post.
|
WP_REST_Request::from_url()wp-includes/rest-api/class-wp-rest-request.php | Retrieves a WP_REST_Request object from a full URL.
|
_wp_upload_dir()wp-includes/functions.php | A non-filtered, non-cached version of wp_upload_dir() that doesn’t check the path.
|
WP_Upgrader::create_lock()wp-admin/includes/class-wp-upgrader.php | Creates a lock using WordPress options.
|
get_rest_url()wp-includes/rest-api.php | Retrieves the URL to a REST endpoint on a site.
|
_oembed_rest_pre_serve_request()wp-includes/embed.php | Hooks into the REST API output to print XML instead of JSON.
|
get_post_embed_url()wp-includes/embed.php | Retrieves the URL to embed a specific post in an iframe.
|
WP_Customize_Manager::customize_pane_settings()wp-includes/class-wp-customize-manager.php | Prints JavaScript settings for parent window.
|
WP_Customize_Setting::get_root_value()wp-includes/class-wp-customize-setting.php | Get the root value for a setting, especially for multidimensional ones.
|
wp_term_is_shared()wp-includes/taxonomy.php | Determines whether a term is shared between multiple taxonomies.
|
WP_REST_Server::get_index()wp-includes/rest-api/class-wp-rest-server.php | Retrieves the site index.
|
WP_REST_Server::serve_request()wp-includes/rest-api/class-wp-rest-server.php | Handles serving a REST API request.
|
wp_handle_comment_submission()wp-includes/comment.php | Handles the submission of a comment, usually posted to wp-comments-post.php via a comment form.
|
wp_new_comment_notify_postauthor()wp-includes/comment.php | Sends a notification of a new comment to the post author.
|
get_network_option()wp-includes/option.php | Retrieves a network’s option value based on the option name.
|
WP_Screen::render_meta_boxes_preferences()wp-admin/includes/class-wp-screen.php | Renders the meta boxes preferences.
|
wp_ajax_delete_inactive_widgets()wp-admin/includes/ajax-actions.php | Handles removing inactive widgets via AJAX.
|
WP_Customize_Nav_Menu_Setting::update()wp-includes/customize/class-wp-customize-nav-menu-setting.php | Create/update the nav_menu term for this setting.
|
WP_Customize_Nav_Menu_Setting::value()wp-includes/customize/class-wp-customize-nav-menu-setting.php | Get the instance data for a given widget setting.
|
_wp_batch_split_terms()wp-includes/taxonomy.php | Splits a batch of shared taxonomy terms.
|
get_language_attributes()wp-includes/general-template.php | Gets the language attributes for the ‘html’ tag.
|
get_site_icon_url()wp-includes/general-template.php | Returns the Site Icon URL.
|
format_for_editor()wp-includes/formatting.php | Formats text for the editor.
|
get_default_comment_status()wp-includes/comment.php | Gets the default comment status for a post type.
|
WP_Customize_Nav_Menus::search_available_items_query()wp-includes/class-wp-customize-nav-menus.php | Performs post queries for available-item searching.
|
WP_Customize_Nav_Menus::customize_register()wp-includes/class-wp-customize-nav-menus.php | Adds the customizer settings and controls.
|
WP_Customize_Nav_Menus::load_available_items_query()wp-includes/class-wp-customize-nav-menus.php | Performs the post_type and taxonomy queries for loading available menu items.
|
wp_resolve_numeric_slug_conflicts()wp-includes/rewrite.php | Resolves numeric slugs that collide with date permalinks.
|
WP_MS_Themes_List_Table::column_name()wp-admin/includes/class-wp-ms-themes-list-table.php | Handles the name column output.
|
WP_Site_Icon::delete_attachment_data()wp-admin/includes/class-wp-site-icon.php | Deletes the Site Icon when the image file is deleted.
|
WP_Site_Icon::get_post_metadata()wp-admin/includes/class-wp-site-icon.php | Adds custom image sizes when meta data for an image is requested, that happens to be used as Site Icon.
|
WP_MS_Sites_List_Table::column_blogname()wp-admin/includes/class-wp-ms-sites-list-table.php | Handles the site name column output.
|
WP_Customize_Manager::unsanitized_post_values()wp-includes/class-wp-customize-manager.php | Gets dirty pre-sanitized setting values in the current customized state.
|
wp_get_split_terms()wp-includes/taxonomy.php | Gets data about terms that previously shared a single term_id, but have since been split.
|
get_avatar_data()wp-includes/link-template.php | Retrieves default data about the avatar.
|
wp_install_maybe_enable_pretty_permalinks()wp-admin/includes/upgrade.php | Maybe enable pretty permalinks on installation.
|
retrieve_password()wp-includes/user.php | Handles sending a password retrieval email to a user.
|
trackback_response()wp-trackback.php | Response to a trackback.
|
allow_subdomain_install()wp-admin/includes/network.php | Allow subdomain installation
|
get_clean_basedomain()wp-admin/includes/network.php | Get base domain of network.
|
network_step1()wp-admin/includes/network.php | Prints step 1 for Network installation process.
|
network_step2()wp-admin/includes/network.php | Prints step 2 for Network installation process.
|
WP_Automatic_Updater::send_email()wp-admin/includes/class-wp-automatic-updater.php | Sends an email upon the completion or failure of a background core update.
|
Plugin_Upgrader::bulk_upgrade()wp-admin/includes/class-plugin-upgrader.php | Upgrades several plugins at once.
|
Theme_Upgrader::upgrade()wp-admin/includes/class-theme-upgrader.php | Upgrades a theme.
|
Theme_Upgrader::bulk_upgrade()wp-admin/includes/class-theme-upgrader.php | Upgrades several themes at once.
|
Plugin_Upgrader::upgrade()wp-admin/includes/class-plugin-upgrader.php | Upgrades a plugin.
|
WP_Plugins_List_Table::prepare_items()wp-admin/includes/class-wp-plugins-list-table.php | |
Theme_Installer_Skin::after()wp-admin/includes/class-theme-installer-skin.php | Performs an action following a single theme install.
|
upload_space_setting()wp-admin/includes/ms.php | Displays the site upload space quota setting form on the Edit Site Settings screen.
|
update_option_new_admin_email()wp-admin/includes/misc.php | Sends a confirmation request email when a change of site admin email address is attempted.
|
send_confirmation_on_profile_email()wp-includes/user.php | Sends a confirmation request email when a change of user email address is attempted.
|
wp_save_image()wp-admin/includes/image-edit.php | Saves image to post, along with enqueued changes in $_REQUEST['history'] .
|
wpmu_delete_blog()wp-admin/includes/ms.php | Deletes a site.
|
wp_check_locked_posts()wp-admin/includes/misc.php | Checks lock status for posts displayed on the Posts screen.
|
wp_refresh_post_lock()wp-admin/includes/misc.php | Checks lock status on the New/Edit Post screen and refresh the lock.
|
update_recently_edited()wp-admin/includes/misc.php | Updates the “recently-edited” file for the plugin or theme file editor.
|
wp_dashboard_rss_output()wp-admin/includes/dashboard.php | Display generic dashboard RSS widget feed.
|
wp_dashboard_cached_rss_widget()wp-admin/includes/dashboard.php | Checks to see if all of the feed url in $check_urls are cached.
|
wp_dashboard_rss_control()wp-admin/includes/dashboard.php | Sets up the RSS dashboard widget control and $args to be used as input to wp_widget_rss_form() .
|
wp_dashboard_right_now()wp-admin/includes/dashboard.php | Dashboard widget that displays some basic stats about the site.
|
_wp_dashboard_recent_comments_row()wp-admin/includes/dashboard.php | Outputs a row for the Recent Comments widget.
|
maybe_disable_link_manager()wp-admin/includes/upgrade.php | Disables the Link Manager on upgrade if, at the time of upgrade, no links exist in the DB.
|
wp_install_defaults()wp-admin/includes/upgrade.php | Creates the initial content for a newly-installed site.
|
is_uninstallable_plugin()wp-admin/includes/plugin.php | Determines whether the plugin can be uninstalled.
|
uninstall_plugin()wp-admin/includes/plugin.php | Uninstalls a single plugin.
|
is_plugin_active()wp-admin/includes/plugin.php | Determines whether a plugin is active.
|
activate_plugin()wp-admin/includes/plugin.php | Attempts activation of plugin in a “sandbox” and redirects on success.
|
deactivate_plugins()wp-admin/includes/plugin.php | Deactivates a single plugin or multiple plugins.
|
validate_active_plugins()wp-admin/includes/plugin.php | Validates active plugins.
|
_wp_admin_html_begin()wp-admin/includes/template.php | Prints out the beginning of the admin HTML header.
|
get_settings_errors()wp-admin/includes/template.php | Fetches settings errors registered by add_settings_error() .
|
iframe_header()wp-admin/includes/template.php | Generic Iframe header for use with Thickbox.
|
WP_Themes_List_Table::prepare_items()wp-admin/includes/class-wp-themes-list-table.php | |
wp_media_insert_url_form()wp-admin/includes/media.php | Creates the form for external url.
|
media_upload_max_image_resize()wp-admin/includes/media.php | Displays the checkbox to scale images.
|
get_attachment_fields_to_edit()wp-admin/includes/media.php | Retrieves the attachment fields to edit form fields.
|
media_upload_form()wp-admin/includes/media.php | Outputs the legacy media upload form.
|
get_sample_permalink_html()wp-admin/includes/post.php | Returns the HTML of the sample permalink slug editor.
|
_fix_attachment_links()wp-admin/includes/post.php | Replaces hrefs of attachment anchors with up-to-date permalinks.
|
wp_edit_posts_query()wp-admin/includes/post.php | Runs the query to fetch the posts for listing on the edit posts page.
|
get_default_post_to_edit()wp-admin/includes/post.php | Returns default post information to use when populating the “Write Post” form.
|
wp_prepare_revisions_for_js()wp-admin/includes/revision.php | Prepare revisions for JavaScript.
|
page_attributes_meta_box()wp-admin/includes/meta-boxes.php | Displays page attributes form fields.
|
wp_insert_link()wp-admin/includes/bookmark.php | Inserts a link into the database, or updates an existing link.
|
wp_set_link_cats()wp-admin/includes/bookmark.php | Updates link with the specified link categories.
|
WP_Comments_List_Table::__construct()wp-admin/includes/class-wp-comments-list-table.php | Constructor.
|
wp_nav_menu_update_menu_items()wp-admin/includes/nav-menu.php | Saves nav menu items.
|
wp_nav_menu_item_post_type_meta_box()wp-admin/includes/nav-menu.php | Displays a meta box for a post type menu item.
|
request_filesystem_credentials()wp-admin/includes/file.php | Displays a form to the user to request for their FTP/SSH details in order to connect to the filesystem.
|
get_home_path()wp-admin/includes/file.php | Gets the absolute filesystem path to the root of the WordPress installation.
|
WP_Posts_List_Table::__construct()wp-admin/includes/class-wp-posts-list-table.php | Constructor.
|
options_reading_blog_charset()wp-admin/includes/options.php | Render the site charset setting.
|
Custom_Background::wp_set_background_image()wp-admin/includes/class-custom-background.php | |
Custom_Background::handle_upload()wp-admin/includes/class-custom-background.php | Handles an Image upload for the background image.
|
WP_Roles::remove_role()wp-includes/class-wp-roles.php | Removes a role by name.
|
WP_Customize_Manager::register_controls()wp-includes/class-wp-customize-manager.php | Registers some default controls.
|
map_meta_cap()wp-includes/capabilities.php | Maps a capability to the primitive capabilities required of the given user to satisfy the capability being checked.
|
WP_Customize_Manager::setup_theme()wp-includes/class-wp-customize-manager.php | Starts preview and customize theme.
|
_get_cron_array()wp-includes/cron.php | Retrieves cron info array option.
|
wp_list_categories()wp-includes/category-template.php | Displays or retrieves the HTML list of categories.
|
_delete_attachment_theme_mod()wp-includes/theme.php | Checks an attachment being deleted to see if it’s a header or background image.
|
check_theme_switched()wp-includes/theme.php | Checks if a theme has been changed and runs ‘after_switch_theme’ hook on the next WP load.
|
set_theme_mod()wp-includes/theme.php | Updates theme modification value for the active theme.
|
remove_theme_mod()wp-includes/theme.php | Removes theme modification name from active theme list.
|
remove_theme_mods()wp-includes/theme.php | Removes theme modifications option for the active theme.
|
get_uploaded_header_images()wp-includes/theme.php | Gets the header images uploaded for the active theme.
|
get_theme_root_uri()wp-includes/theme.php | Retrieves URI for themes directory.
|
get_raw_theme_root()wp-includes/theme.php | Gets the raw theme root relative to the content directory with no filters applied.
|
switch_theme()wp-includes/theme.php | Switches the theme.
|
get_theme_mods()wp-includes/theme.php | Retrieves all theme modifications.
|
get_template()wp-includes/theme.php | Retrieves name of the active theme.
|
get_stylesheet()wp-includes/theme.php | Retrieves name of the current stylesheet.
|
get_locale()wp-includes/l10n.php | Retrieves the current locale.
|
esc_textarea()wp-includes/formatting.php | Escaping for textarea values.
|
sanitize_option()wp-includes/formatting.php | Sanitizes various option values based on the nature of the option.
|
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.
|
wp_trim_words()wp-includes/formatting.php | Trims text to a certain number of words.
|
convert_smilies()wp-includes/formatting.php | Converts text equivalent of smilies to images.
|
balanceTags()wp-includes/formatting.php | Balances tags if forced to, or if the ‘use_balanceTags’ option is set to true.
|
get_avatar()wp-includes/pluggable.php | Retrieves the avatar <img> tag for a user, email address, MD5 hash, comment, or post.
|
_wp_specialchars()wp-includes/formatting.php | Converts a number of special characters into their HTML entities.
|
wp_password_change_notification()wp-includes/pluggable.php | Notifies the blog admin of a user changing password, normally via email.
|
wp_new_user_notification()wp-includes/pluggable.php | Emails login credentials to a newly-registered user.
|
wp_notify_postauthor()wp-includes/pluggable.php | Notifies an author (and/or others) of a comment/trackback/pingback on a post.
|
wp_notify_moderator()wp-includes/pluggable.php | Notifies the moderator of the site about a new comment that is awaiting approval.
|
wp_set_auth_cookie()wp-includes/pluggable.php | Sets the authentication cookies based on user ID.
|
noindex()wp-includes/deprecated.php | Displays a noindex meta tag if required by the blog configuration.
|
wp_no_robots()wp-includes/deprecated.php | Display a noindex meta tag.
|
get_the_modified_date()wp-includes/general-template.php | Retrieves the date on which the post was last modified.
|
get_the_time()wp-includes/general-template.php | Retrieves the time at which the post was written.
|
get_the_modified_time()wp-includes/general-template.php | Retrieves the time at which the post was last modified.
|
wp_get_archives()wp-includes/general-template.php | Displays archive links based on type and format.
|
get_calendar()wp-includes/general-template.php | Displays calendar with days that have posts as links.
|
get_the_date()wp-includes/general-template.php | Retrieves the date on which the post was written.
|
get_bloginfo()wp-includes/general-template.php | Retrieves information about the current site.
|
wp_register()wp-includes/general-template.php | Displays the Registration or Admin link.
|
get_boundary_post_rel_link()wp-includes/deprecated.php | Get boundary post relational link.
|
get_parent_post_rel_link()wp-includes/deprecated.php | Get parent post relational link.
|
get_current_theme()wp-includes/deprecated.php | Retrieve current theme name.
|
make_url_footnote()wp-includes/deprecated.php | Strip HTML and put links at the bottom of stripped content.
|
get_settings()wp-includes/deprecated.php | Get value based on option.
|
get_links()wp-includes/deprecated.php | Gets the links associated with category by ID.
|
WP_Theme::get_allowed_on_site()wp-includes/class-wp-theme.php | Returns array of stylesheet names of themes allowed on the site.
|
WP::send_headers()wp-includes/class-wp.php | Sends additional HTTP headers for caching, content type, etc.
|
WP_Query::is_front_page()wp-includes/class-wp-query.php | Determines whether the query is for the front page of the site.
|
WP_Query::get_queried_object()wp-includes/class-wp-query.php | Retrieves the currently queried object.
|
WP_Query::get_posts()wp-includes/class-wp-query.php | Retrieves an array of posts based on query variables.
|
WP_Query::parse_query()wp-includes/class-wp-query.php | Parses a query string and sets query type booleans.
|
wp_set_internal_encoding()wp-includes/load.php | Sets internal encoding.
|
wp_get_active_and_valid_plugins()wp-includes/load.php | Retrieves an array of active and valid plugin files.
|
WP_HTTP_Proxy::send_through_proxy()wp-includes/class-wp-http-proxy.php | Determines whether the request should be sent through a proxy.
|
WP_Http::block_request()wp-includes/class-wp-http.php | Determines whether an HTTP API request to the given URL should be blocked.
|
wp_timezone_override_offset()wp-includes/functions.php | Modifies gmt_offset for smart timezone handling.
|
wp_send_json()wp-includes/functions.php | Sends a JSON response back to an Ajax request.
|
smilies_init()wp-includes/functions.php | Converts smiley code to the icon graphic file equivalent.
|
do_robots()wp-includes/functions.php | Displays the default robots.txt file content.
|
get_weekstartend()wp-includes/functions.php | Gets the week start and end from the datetime or date string from MySQL.
|
current_time()wp-includes/functions.php | Retrieves the current time based on specified type.
|
WP_Widget_RSS::widget()wp-includes/widgets/class-wp-widget-rss.php | Outputs the content for the current RSS widget instance.
|
WP_Widget_Recent_Comments::widget()wp-includes/widgets/class-wp-widget-recent-comments.php | Outputs the content for the current Recent Comments widget instance.
|
wp_widget_rss_output()wp-includes/widgets.php | Display the RSS entries in a list.
|
wp_widgets_init()wp-includes/widgets.php | Registers all of the default WordPress widgets on startup.
|
_get_term_hierarchy()wp-includes/taxonomy.php | Retrieves children of taxonomy as term IDs.
|
wp_unique_term_slug()wp-includes/taxonomy.php | Makes term slug unique, if it isn’t already.
|
wp_delete_term()wp-includes/taxonomy.php | Removes a term from the database.
|
wp_cookie_constants()wp-includes/default-constants.php | Defines cookie-related WordPress constants.
|
wp_ssl_constants()wp-includes/default-constants.php | Defines SSL-related WordPress constants.
|
create_initial_taxonomies()wp-includes/taxonomy.php | Creates the initial taxonomies.
|
wp_plugin_directory_constants()wp-includes/default-constants.php | Defines plugin directory WordPress constants.
|
wp_get_shortlink()wp-includes/link-template.php | Returns a shortlink for a post, page, attachment, or site.
|
get_comments_pagenum_link()wp-includes/link-template.php | Retrieves the comments page number link.
|
get_home_url()wp-includes/link-template.php | Retrieves the URL for a given site where the front end is accessible.
|
get_site_url()wp-includes/link-template.php | Retrieves the URL for a given site where WordPress application files (e.g. wp-blog-header.php or the wp-admin/ folder) are accessible.
|
get_adjacent_post_link()wp-includes/link-template.php | Retrieves the adjacent post link.
|
get_adjacent_post_rel_link()wp-includes/link-template.php | Retrieves the adjacent post relational link.
|
get_post_type_archive_link()wp-includes/link-template.php | Retrieves the permalink for a post type archive.
|
get_post_type_archive_feed_link()wp-includes/link-template.php | Retrieves the permalink for a post type archive feed.
|
get_term_feed_link()wp-includes/link-template.php | Retrieves the feed link for a term.
|
get_post_comments_feed_link()wp-includes/link-template.php | Retrieves the permalink for the post comments feed.
|
get_author_feed_link()wp-includes/link-template.php | Retrieves the feed link for a given author.
|
get_permalink()wp-includes/link-template.php | Retrieves the full permalink for the current post or post ID.
|
get_page_link()wp-includes/link-template.php | Retrieves the permalink for the current page or page ID.
|
get_attachment_link()wp-includes/link-template.php | Retrieves the permalink for an attachment.
|
WP_Ajax_Response::send()wp-includes/class-wp-ajax-response.php | Display XML formatted responses.
|
wp_http_validate_url()wp-includes/http.php | Validates a URL for safe use in the HTTP API.
|
wp_update_plugins()wp-includes/update.php | Checks for available updates to plugins based on the latest versions hosted on WordPress.org.
|
wp_update_themes()wp-includes/update.php | Checks for available updates to themes based on the latest versions hosted on WordPress.org.
|
wp_admin_bar_edit_menu()wp-includes/admin-bar.php | Provides an edit link for posts and terms.
|
register_uninstall_hook()wp-includes/plugin.php | Sets the uninstallation hook for a plugin.
|
get_the_category_rss()wp-includes/feed.php | Retrieves all of the post categories, formatted for use in feeds.
|
fetch_feed()wp-includes/feed.php | Builds SimplePie object based on RSS or Atom feed from URL.
|
get_transient()wp-includes/option.php | Retrieves the value of a transient.
|
set_transient()wp-includes/option.php | Sets/updates the value of a transient.
|
update_option()wp-includes/option.php | Updates the value of an option that was already added.
|
add_option()wp-includes/option.php | Adds a new option.
|
get_option()wp-includes/option.php | Retrieves an option value based on an option name.
|
form_option()wp-includes/option.php | Prints option value after sanitizing for forms.
|
wp_update_user()wp-includes/user.php | Updates a user in the database.
|
register_new_user()wp-includes/user.php | Handles registering a new user.
|
wp_insert_user()wp-includes/user.php | Inserts a user into the database.
|
get_blogs_of_user()wp-includes/user.php | Gets the sites a user belongs to.
|
_walk_bookmarks()wp-includes/bookmark-template.php | The formatted output of a list of bookmarks.
|
_wp_menu_item_classes_by_context()wp-includes/nav-menu-template.php | Adds the class property classes for the current context, if applicable.
|
Walker_Page::start_el()wp-includes/class-walker-page.php | Outputs the beginning of the current element in the tree.
|
_wp_link_page()wp-includes/post-template.php | Helper function for wp_link_pages() .
|
wp_list_pages()wp-includes/post-template.php | Retrieves or displays a list of pages (or hierarchical post type items) in list (li) format.
|
wp_page_menu()wp-includes/post-template.php | Displays or retrieves a list of pages with an optional home link.
|
_publish_post_hook()wp-includes/post.php | Hook to schedule pings and enclosures when a post is published.
|
wp_publish_post()wp-includes/post.php | Publishes a post by transitioning the post status.
|
wp_unique_post_slug()wp-includes/post.php | Computes a unique slug for the post, when given the desired slug and some post details.
|
wp_set_post_categories()wp-includes/post.php | Sets categories for a post.
|
wp_insert_post()wp-includes/post.php | Inserts or update a post.
|
_reset_front_page_settings_for_post()wp-includes/post.php | Resets the page_on_front, show_on_front, and page_for_post settings when a linked page is deleted or trashed.
|
is_sticky()wp-includes/post.php | Determines whether a post is sticky.
|
stick_post()wp-includes/post.php | Makes a post sticky.
|
unstick_post()wp-includes/post.php | Un-sticks a post.
|
WP_Rewrite::init()wp-includes/class-wp-rewrite.php | Sets up the object’s properties.
|
WP_Rewrite::set_category_base()wp-includes/class-wp-rewrite.php | Sets the category base for the category permalink.
|
WP_Rewrite::set_tag_base()wp-includes/class-wp-rewrite.php | Sets the tag base for the tag permalink.
|
create_initial_post_types()wp-includes/post.php | Creates the initial post types when ‘init’ action is fired.
|
WP_Rewrite::wp_rewrite_rules()wp-includes/class-wp-rewrite.php | Retrieves the rewrite rules.
|
WP_Rewrite::generate_rewrite_rules()wp-includes/class-wp-rewrite.php | Generates rewrite rules from a permalink structure.
|
url_to_postid()wp-includes/rewrite.php | Examines a URL and try to determine the post ID it represents.
|
redirect_canonical()wp-includes/canonical.php | Redirects incoming links to the proper URL based on the site url.
|
_wp_upgrade_revisions_of_post()wp-includes/revision.php | Upgrades the revisions author, adds the current post as a revision and sets the revisions version to 1.
|
get_space_allowed()wp-includes/ms-functions.php | Returns the upload quota for the current blog.
|
maybe_add_existing_user_to_blog()wp-includes/ms-functions.php | Adds a new user to a blog by visiting /newbloguser/{key}/.
|
wpmu_welcome_user_notification()wp-includes/ms-functions.php | Notifies a user that their account activation has been successful.
|
newblog_notify_siteadmin()wp-includes/ms-functions.php | Notifies the network admin that a new site has been activated.
|
wpmu_welcome_notification()wp-includes/ms-functions.php | Notifies the site administrator that their site activation was successful.
|
wpmu_signup_blog_notification()wp-includes/ms-functions.php | Sends a confirmation request email to a user when they sign up for a new site. The new site will not become active until the confirmation link is clicked.
|
wpmu_signup_user_notification()wp-includes/ms-functions.php | Sends a confirmation request email to a user when they sign up for a new user account (without signing up for a site at the same time). The user account will not become active until the confirmation link is clicked.
|
get_blog_option()wp-includes/ms-blogs.php | Retrieves option value for a given blog id based on name of option.
|
get_blog_details()wp-includes/ms-blogs.php | Retrieves the details for a blog from the blogs table and blog options.
|
_wp_auto_add_pages_to_menu()wp-includes/nav-menu.php | Automatically add newly published page objects to menus with that as an option.
|
wp_xmlrpc_server::pingback_ping()wp-includes/class-wp-xmlrpc-server.php | Retrieves a pingback and registers it.
|
wp_xmlrpc_server::_getOptions()wp-includes/class-wp-xmlrpc-server.php | Retrieves blog options value from list.
|
wp_xmlrpc_server::blogger_getUsersBlogs()wp-includes/class-wp-xmlrpc-server.php | Retrieves blogs that user owns.
|
wp_xmlrpc_server::wp_newComment()wp-includes/class-wp-xmlrpc-server.php | Creates a new comment.
|
wp_xmlrpc_server::wp_getUsersBlogs()wp-includes/class-wp-xmlrpc-server.php | Retrieves the blogs of the user.
|
ms_cookie_constants()wp-includes/ms-default-constants.php | Defines Multisite cookie constants.
|
WP_Widget::get_settings()wp-includes/class-wp-widget.php | Retrieves the settings for all instances of the widget class.
|
is_dynamic_sidebar()wp-includes/widgets.php | Determines whether the dynamic sidebar is enabled and used by the theme.
|
wp_get_sidebars_widgets()wp-includes/widgets.php | Retrieve full list of sidebars and their widget instance IDs.
|
wp_convert_widget_settings()wp-includes/widgets.php | Converts the widget settings from single to multi-widget format.
|
get_post_reply_link()wp-includes/comment-template.php | Retrieves HTML content for reply to post link.
|
wp_list_comments()wp-includes/comment-template.php | Displays a list of comments.
|
comment_form()wp-includes/comment-template.php | Outputs a complete commenting form for use within a template.
|
get_trackback_url()wp-includes/comment-template.php | Retrieves the current post’s trackback URL.
|
comments_template()wp-includes/comment-template.php | Loads the comment template specified in $file.
|
get_comment_reply_link()wp-includes/comment-template.php | Retrieves HTML content for reply to comment link.
|
get_comment_link()wp-includes/comment-template.php | Retrieves the link to a given comment.
|
get_comment_time()wp-includes/comment-template.php | Retrieves the comment time of the current comment.
|
get_comment_date()wp-includes/comment-template.php | Retrieves the comment date of the current comment.
|
WP_Customize_Widgets::preview_sidebars_widgets()wp-includes/class-wp-customize-widgets.php | When previewing, ensures the proper previewing widgets are used.
|
privacy_ping_filter()wp-includes/comment.php | Checks whether blog is public before returning sites.
|
trackback()wp-includes/comment.php | Sends a Trackback.
|
weblog_ping()wp-includes/comment.php | Sends a pingback.
|
_close_comments_for_old_posts()wp-includes/comment.php | Closes comments on old posts on the fly, without any extra DB queries. Hooked to the_posts.
|
_close_comments_for_old_post()wp-includes/comment.php | Closes comments on an old post. Hooked to comments_open and pings_open.
|
generic_ping()wp-includes/comment.php | Sends pings to all of the ping site services.
|
get_comment_pages_count()wp-includes/comment.php | Calculates the total number of comment pages.
|
get_page_of_comment()wp-includes/comment.php | Calculates what page number a comment will appear on for comment paging.
|
check_comment()wp-includes/comment.php | Checks whether a comment passes internal checks to be allowed to add.
|
wp_print_media_templates()wp-includes/media-template.php | Prints the templates used in the media manager.
|
Handling of non-existing options
Show Blog Title
Displays your blog’s title in a
<h1>
tag.Show Character Set
Displays the character set your blog is using (ex: UTF-8)
Retrieve Administrator E-mail
Retrieve the e-mail of the blog administrator, storing it in a variable.
A quick tip that the output of
get_option()
is filterable:So you can change the output of
get_option()
at run time.Helpful for disabling specific plugins when required.
https://developer.wordpress.org/reference/hooks/option_option/
Check if option is set to avoid warnings.
Was getting Illegal Offset warnings when the checkbox was not selected on a plugin’s option page.
Adding isset() inside checked() sorted it all out.
Hope this helps somebody else out.
Just like we use
to incorporate the date format defined in Settings -> General,
We can also use
to incorporate the time format defined in Settings -> General.
for example
If you want to get a network-wide option, use the get_site_option function instead. https://developer.wordpress.org/reference/functions/get_site_option
There is a “long-hand” format for creating option settings-field parameter in one line that is harder to read/follow semantically, but provides a single string to a options setting instead of two strings for every option.
The above returns false, so technically there is no default to setup unless you require a value.
And there are just a bit less parameter parsing than
Alternatively (if default required):
And for a checkbox in a settings array, try:
This is helpful for assigning defaults values to multiple options:
Usage as the following:
Displaying the option:
Simply way to check the option value set or not.
For Example, I have a plugin version 1.0 that is installed on the user site. The plugin version is set on the plugin activation. If I released a new plugin version 2.0 and need to check the installed plugin version and new apply changes on the new version update.
For it, you need to set default value in function:
So, if option value not set or avaiable than default value assigned to variable.
Sample code:
For use with images includes a default image in child theme folder named default.png and option when adding image using the customizer.
$image = get_option( 'genesis-customizer-image', sprintf( '%s/default.png', get_stylesheet_directory_uri() ) );
Keep in mind that if you use Settings API along with Options API, the database row for the option will NOT be created until the setting page form is submitted with an updated value for that setting.
If a default value is set when registering your settings, and you try to test if the option exists, if there is no database entry for the option, the default value set with Settings API will be returned instead of
false
. Keep this in mind when writing your code.check options exists or not, use isset to check
if value exists then checked box appear, if there is no option then unchecked box appears