Pluggable.php

Dans le fichier wp-includes/pluggable.php, il y a plusieurs fonctions qui sont définies seulement si l’utilisateur ne les a pas définies auparavant. En clair, cela signifie qu’on peut personnaliser ces fonctions dans un plugin ou un thème. WP prendra alors en compte la version du plugin et non la version par défaut.

Pour la version 2.3.3, la liste des fonctions personnalisables est la suivante:

function set_current_user($id, $name = ”) {
function wp_set_current_user($id, $name = ”) {
function wp_get_current_user() {
function get_currentuserinfo() {
function get_userdata( $user_id ) {
function update_user_cache() {
function get_userdatabylogin($user_login) {
function wp_mail($to, $subject, $message, $headers = ”) {
function wp_login($username, $password, $already_md5 = false) {
function is_user_logged_in() {
function auth_redirect() {
function check_admin_referer($action = -1) {
function check_ajax_referer() {
function wp_redirect($location, $status = 302) {
function wp_get_cookie_login() {
function wp_setcookie($username, $password, $already_md5 = false, $home = ”, $siteurl = ”, $remember = false) {
function wp_clearcookie() {
function wp_notify_postauthor($comment_id, $comment_type=”) {
function wp_notify_moderator($comment_id) {
function wp_new_user_notification($user_id, $plaintext_pass = ”) {
function wp_verify_nonce($nonce, $action = -1) {
function wp_create_nonce($action = -1) {
function wp_salt() {
function wp_hash($data) {

Répondre

This text will be replaced