当前位置: 首页>>代码示例>>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;未经允许,请勿转载。