當前位置: 首頁>>代碼示例>>PHP>>正文


PHP um_admin_email函數代碼示例

本文整理匯總了PHP中um_admin_email函數的典型用法代碼示例。如果您正苦於以下問題:PHP um_admin_email函數的具體用法?PHP um_admin_email怎麽用?PHP um_admin_email使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了um_admin_email函數的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: um_convert_tags

function um_convert_tags($content, $args = array())
{
    $search = array('{display_name}', '{first_name}', '{last_name}', '{gender}', '{username}', '{email}', '{password}', '{login_url}', '{site_name}', '{site_url}', '{account_activation_link}', '{password_reset_link}', '{admin_email}', '{user_profile_link}', '{user_account_link}', '{submitted_registration}', '{user_avatar_url}');
    $search = apply_filters('um_template_tags_patterns_hook', $search);
    $replace = array(um_user('display_name'), um_user('first_name'), um_user('last_name'), um_user('gender'), um_user('user_login'), um_user('user_email'), um_user('_um_cool_but_hard_to_guess_plain_pw'), um_get_core_page('login'), um_get_option('site_name'), get_bloginfo('url'), um_user('account_activation_link'), um_user('password_reset_link'), um_admin_email(), um_user_profile_url(), um_get_core_page('account'), um_user_submitted_registration(), um_get_user_avatar_url());
    $replace = apply_filters('um_template_tags_replaces_hook', $replace);
    $content = str_replace($search, $replace, $content);
    if (isset($args['tags']) && isset($args['tags_replace'])) {
        $content = str_replace($args['tags'], $args['tags_replace'], $content);
    }
    return $content;
}
開發者ID:blogfor,項目名稱:king,代碼行數:12,代碼來源:um-short-functions.php

示例2: um_convert_tags

function um_convert_tags($content, $args = array())
{
    $search = array('{display_name}', '{first_name}', '{last_name}', '{gender}', '{username}', '{email}', '{password}', '{login_url}', '{login_referrer}', '{site_name}', '{site_url}', '{account_activation_link}', '{password_reset_link}', '{admin_email}', '{user_profile_link}', '{user_account_link}', '{submitted_registration}', '{user_avatar_url}');
    $search = apply_filters('um_template_tags_patterns_hook', $search);
    $replace = array(um_user('display_name'), um_user('first_name'), um_user('last_name'), um_user('gender'), um_user('user_login'), um_user('user_email'), um_user('_um_cool_but_hard_to_guess_plain_pw'), um_get_core_page('login'), um_dynamic_login_page_redirect(), um_get_option('site_name'), get_bloginfo('url'), um_user('account_activation_link'), um_user('password_reset_link'), um_admin_email(), um_user_profile_url(), um_get_core_page('account'), um_user_submitted_registration(), um_get_user_avatar_url());
    $replace = apply_filters('um_template_tags_replaces_hook', $replace);
    $content = str_replace($search, $replace, $content);
    if (isset($args['tags']) && isset($args['tags_replace'])) {
        $content = str_replace($args['tags'], $args['tags_replace'], $content);
    }
    $regex = '~\\{([^}]*)\\}~';
    preg_match_all($regex, $content, $matches);
    // Support for all usermeta keys
    if (isset($matches[1]) && is_array($matches[1]) && !empty($matches[1])) {
        foreach ($matches[1] as $match) {
            $strip_key = str_replace('usermeta:', '', $match);
            $content = str_replace('{' . $match . '}', um_user($strip_key), $content);
        }
    }
    return $content;
}
開發者ID:vanlong200880,項目名稱:tmdt,代碼行數:21,代碼來源:um-short-functions.php

示例3: um_post_registration_listener

function um_post_registration_listener($user_id, $args)
{
    global $ultimatemember;
    if (um_user('status') != 'pending') {
        $ultimatemember->mail->send(um_admin_email(), 'notification_new_user', array('admin' => true));
    } else {
        $ultimatemember->mail->send(um_admin_email(), 'notification_review', array('admin' => true));
    }
}
開發者ID:smithsa,項目名稱:daily-job-hunter,代碼行數:9,代碼來源:um-actions-register.php

示例4: delete

 function delete($send_mail = true)
 {
     global $ultimatemember;
     do_action('um_delete_user_hook');
     do_action('um_delete_user', um_user('ID'));
     // send email notifications
     if ($send_mail) {
         $ultimatemember->mail->send(um_user('user_email'), 'deletion_email');
         $ultimatemember->mail->send(um_admin_email(), 'notification_deletion', array('admin' => true));
     }
     // remove uploads
     $ultimatemember->files->remove_dir(um_user_uploads_dir());
     // remove user
     if (is_multisite()) {
         if (!function_exists('wpmu_delete_user')) {
             require_once ABSPATH . 'wp-admin/includes/ms.php';
         }
         wpmu_delete_user($this->id);
     } else {
         if (!function_exists('wp_delete_user')) {
             require_once ABSPATH . 'wp-admin/includes/user.php';
         }
         wp_delete_user($this->id);
     }
 }
開發者ID:TeamSubjectMatter,項目名稱:juddfoundation,代碼行數:25,代碼來源:um-user.php


注:本文中的um_admin_email函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。