• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress core a2z

WordPress core a2z

WordPress core only

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Files / wp-includes/pluggable.php


Lines:

1 to 100 of 160
<?php

/**
 * These functions can be replaced via plugins. If plugins do not redefine these
 * functions, then these will be used instead.
 *
 * @package WordPress
 */

if ( ! function_exists( 'wp_set_current_user' ) ) :
/* function wp_set_current_user() – Changes the current user by ID or name. */
endif;

if ( ! function_exists( 'wp_get_current_user' ) ) :
/* function wp_get_current_user() – Retrieve the current user object. */
endif;

if ( ! function_exists( 'get_userdata' ) ) :
/* function get_userdata() – Retrieve user info by user ID. */
endif;

if ( ! function_exists( 'get_user_by' ) ) :
/* function get_user_by() – Retrieve user info by a given field */
endif;

if ( ! function_exists( 'cache_users' ) ) :
/* function cache_users() – Retrieve info for user lists to prevent multiple queries by get_userdata() */
endif;

if ( ! function_exists( 'wp_mail' ) ) :
/* function wp_mail() – Sends an email, similar to PHP’s mail function. */
endif;

if ( ! function_exists( 'wp_authenticate' ) ) :
/* function wp_authenticate() – Authenticate a user, confirming the login credentials are valid. */
endif;

if ( ! function_exists( 'wp_logout' ) ) :
/* function wp_logout() – Log the current user out. */
endif;

if ( ! function_exists( 'wp_validate_auth_cookie' ) ) :
/* function wp_validate_auth_cookie() – Validates authentication cookie. */
endif;

if ( ! function_exists( 'wp_generate_auth_cookie' ) ) :
/* function wp_generate_auth_cookie() – Generates authentication cookie contents. */
endif;

if ( ! function_exists( 'wp_parse_auth_cookie' ) ) :
/* function wp_parse_auth_cookie() – Parses a cookie into its components. */
endif;

if ( ! function_exists( 'wp_set_auth_cookie' ) ) :
/* function wp_set_auth_cookie() – Sets the authentication cookies based on user ID. */
endif;

if ( ! function_exists( 'wp_clear_auth_cookie' ) ) :
/* function wp_clear_auth_cookie() – Removes all of the cookies associated with authentication. */
endif;

if ( ! function_exists( 'is_user_logged_in' ) ) :
/* function is_user_logged_in() – Determines whether the current visitor is a logged in user. */
endif;

if ( ! function_exists( 'auth_redirect' ) ) :
/* function auth_redirect() – Checks if a user is logged in, if not it redirects them to the login page. */
endif;

if ( ! function_exists( 'check_admin_referer' ) ) :
/* function check_admin_referer() – Ensures intent by verifying that a user was referred from another admin page with the correct security nonce. */
endif;

if ( ! function_exists( 'check_ajax_referer' ) ) :
/* function check_ajax_referer() – Verifies the Ajax request to prevent processing requests external of the blog. */
endif;

if ( ! function_exists( 'wp_redirect' ) ) :
/* function wp_redirect() – Redirects to another page. */
endif;

if ( ! function_exists( 'wp_sanitize_redirect' ) ) :
/* function wp_sanitize_redirect() – Sanitizes a URL for use in a redirect. */

/* function _wp_sanitize_utf8_in_redirect() – URL encode UTF-8 characters in a URL. */
endif;

if ( ! function_exists( 'wp_safe_redirect' ) ) :
/* function wp_safe_redirect() – Performs a safe (local) redirect, using wp_redirect(). */
endif;

if ( ! function_exists( 'wp_validate_redirect' ) ) :
/* function wp_validate_redirect() – Validates a URL for use in a redirect. */
endif;

if ( ! function_exists( 'wp_notify_postauthor' ) ) :
/* function wp_notify_postauthor() – Notify an author (and/or others) of a comment/trackback/pingback on a post. */
endif;

if ( ! function_exists( 'wp_notify_moderator' ) ) :
[1] [2] Next »

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      File name: wp-includes/pluggable.php
      Plugin ref: WordPress
      Version: 5.6
      Deprecated?: No
      API Letters: I,P,W

      Published: 25th November 2019 | Last updated: 9th December 2020

      Primary Sidebar

      Information

      File name: wp-includes/pluggable.php
      Plugin ref: WordPress
      Version: 5.6
      Deprecated?: No
      API Letters: I,P,W

      wp-includes

      Footer

      WP-a2z
      WordPress core a2z
      WordPress core only
      WordPress 5.6
      WordPress a2z
      WordPress core a2z
      Genesis Theme Framework a2z
      Jetpack a2z
      WordPress develop tests
      Easy Digital Downloads a2z
      WooCommerce a2z
      Yoast SEO a2z
      WordPress Blocks

      Site:  core.wp-a2z.org
      © Copyright WP-a2z 2014-2021. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins

      • Home
      • Blog
      • Sitemap
      • Sites