New and updated in 4.5.0
-
functionrest_get_server()
Retrieves the current REST server instance.
-
function_custom_logo_header_styles()
Adds CSS to hide header text for custom logo, based on Customizer setting.
-
functionget_embed_template()
Retrieves an embed template path in the current or parent template.
-
functionunregister_taxonomy()
Unregisters a taxonomy.
-
functionthe_custom_logo()
Displays a custom logo, linked to home unless the theme supports removing the link on the home page.
-
functionhas_custom_logo()
Determines whether the site has a custom logo.
-
functionget_custom_logo()
Returns a custom logo, linked to home unless the theme supports removing the link on the home page.
-
function_wp_get_current_user()
Retrieves the current user object.
-
functionwp_authenticate_email_password()
Authenticates a user using the email and password.
-
functionwp_add_inline_script()
Adds extra code to a registered script.
-
function_wp_upload_dir()
A non-filtered, non-cached version of wp_upload_dir() that doesn’t check the path.
-
functionwp_get_upload_dir()
Retrieves uploads directory information.
-
functionwp_get_raw_referer()
Retrieves unvalidated referer from the ‘_wp_http_referer’ URL query variable or the HTTP referer.
-
function_wp_post_revision_data()
Returns a post array ready to be inserted into the posts table as a post revision.
-
Retrieves the maximum character lengths for the comment form fields.
-
Queues comments for metadata lazy-loading.
-
Adds a suffix if any trashed posts have a given slug.
-
Adds a trashed suffix for a given post.
-
Queues posts for lazy-loading of term meta.
-
functionget_post_types_by_support()
Retrieves a list of post type names that support a specific feature.
-
functionunregister_post_type()
Unregisters a post type.
-
functionremove_rewrite_tag()
Removes an existing rewrite tag (like %postname%).
-
functionremove_permastruct()
Removes a permalink structure.
-
functionis_post_type_viewable()
Determines whether a post type is considered “viewable”.
-
function_deprecated_constructor()
Marks a constructor as deprecated and informs when it has been used.
-
functionadd_theme_support()
Registers theme support for a given feature.
-
function_delete_attachment_theme_mod()
Checks an attachment being deleted to see if it’s a header or background image.
-
functionwp_authenticate()
Authenticates a user, confirming the login credentials are valid.