本文整理汇总了PHP中wc_lostpassword_url函数的典型用法代码示例。如果您正苦于以下问题:PHP wc_lostpassword_url函数的具体用法?PHP wc_lostpassword_url怎么用?PHP wc_lostpassword_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wc_lostpassword_url函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: redirect_reset_password_link
/**
* Remove key and login from querystring, set cookie, and redirect to account page to show the form.
*/
public static function redirect_reset_password_link()
{
if (is_account_page() && !empty($_GET['key']) && !empty($_GET['login'])) {
$value = sprintf('%s:%s', wp_unslash($_GET['login']), wp_unslash($_GET['key']));
WC_Shortcode_My_Account::set_reset_password_cookie($value);
wp_safe_redirect(add_query_arg('show-reset-form', 'true', wc_lostpassword_url()));
exit;
}
}
开发者ID:johnulist,项目名称:woocommerce,代码行数:12,代码来源:class-wc-form-handler.php
示例2: _e
_e('Remember me', 'woocommerce');
?>
</label>
</fieldset>
<input type="hidden" name="redirect_to" id="redirect_to" value="<?php
bloginfo('url');
?>
/my-account/" />
<?php
wp_nonce_field('ajax-login-nonce', 'security');
?>
<p class="status"></p>
<a href="<?php
echo esc_url(wc_lostpassword_url());
?>
" class="forgot-password"><?php
_e('Lost your password?', 'woocommerce');
?>
</a>
<?php
do_action('woocommerce_login_form_end');
?>
</form>
</div>
<div class="col">
<h1><?php
_e('Create an account', 'woocommerce');
?>
开发者ID:sergioblanco86,项目名称:git-gitlab.com-kinivo-kinivo.com,代码行数:31,代码来源:form-login.php
示例3: displayForm
function displayForm($atts)
{
$user_status = is_user_logged_in();
if (!$user_status && !isset($_GET['action'])) {
?>
<div id="WK_ContentLoginForm">
<?php
wc_print_notices();
?>
<form method="post" class="login">
<fieldset class="[ margin-bottom ]">
<label for="username"><?php
_e('Username or email address', 'marketplace');
?>
<span class="required">*</span></label>
<input type="text" class="[ input-text ][ xmall-12 ]" name="wkmp_username" id="username" value="<?php
echo isset($_GET['email']) ? $_GET['email'] : '';
?>
" placeholder="enter your email id or username"/>
</fieldset>
<fieldset class="[ margin-bottom ]">
<label for="password"><?php
_e('Password', 'marketplace');
?>
<span class="required">*</span></label>
<input class="[ input-text ][ xmall-12 ]" type="password" name="password" id="password" value="" placeholder="enter your password" />
</fieldset>
<fieldset>
<input type="hidden" value="<?php
echo wp_get_referer();
?>
" name="_wp_http_referer1">
</fieldset>
<fieldset class="[ margin-bottom ]">
<label for="rememberme">
<input name="rememberme" type="checkbox" id="rememberme" value="forever" /> <?php
_e('Remember me', 'marketplace');
?>
</label>
</fieldset>
<fieldset class="[ text-center ][ margin-bottom ">
<?php
wp_nonce_field('marketplace-username');
?>
<input type="submit" class="[ button button--primary ]" name="login" value="<?php
_e('Login', 'marketplace');
?>
" /> <a href="<?php
echo wp_registration_url();
?>
"><input type="button" class="[ button button--primary ]" value="<?php
_e("Register");
?>
"></a>
</fieldset>
<fieldset class="[ text-center ]">
<a href="<?php
echo esc_url(wc_lostpassword_url());
?>
"><?php
_e('Lost your password?', 'marketplace');
?>
</a>
</fieldset>
</form>
</div> <!-- content div -->
<?php
} else {
if ($user_status) {
global $wpdb;
$wpmp_obj1 = new MP_Form_Handler();
$current_user = wp_get_current_user();
// MP_Form_Handler::profile_edit_redirection();
$wpmp_obj1->profile_edit_redirection();
// $avatar=MP_Form_Handler::get_user_avatar($current_user->ID,'avatar');
$avatar = $wpmp_obj1->get_user_avatar($current_user->ID, 'avatar');
// $seller_detail=MP_Form_Handler::seller_details($current_user->ID);
$seller_detail = $wpmp_obj1->seller_details($current_user->ID);
$seller_info = $wpdb->get_var("SELECT user_id FROM {$wpdb->prefix}mpsellerinfo WHERE user_id = '" . $current_user->data->ID . "' and seller_value=1");
echo '<h3 class="[ text-center ]"><small>Profile</small></h3>';
echo '<div class="wk_profileclass">';
echo '<form method="post">';
if ($current_user->data->ID && $seller_info > 0) {
if (isset($avatar[0]->meta_value)) {
echo '<div class="wk_profileimg"><img src="' . content_url() . '/uploads/' . $avatar[0]->meta_value . '" /></div>';
} else {
echo '<div class="wk_profileimg"><img src="' . content_url() . '/plugins/marketplace/assets/images/genric-male.png" /></div>';
}
}
echo '<div class="wk_profileinfo"><div class="wk_profiledata"><label>Username </label> : ' . $current_user->user_login . '</div>';
echo '<div class="wk_profiledata"><label>E-mail </label> : ' . $current_user->user_email . '</div>';
echo '<div class="wk_profiledata"><label>Name </label> : ' . $current_user->user_firstname . ' ' . $current_user->user_lastname . '</div>';
echo '<div class="wk_profiledata"><label>Display name </label> : ' . $current_user->display_name . '</div>';
if ($current_user->data->ID && $seller_info > 0) {
echo '<div class="wk_profiledata"><label>Shop Name </label> : ' . $seller_detail['shop_name'][0] . '</div>';
echo '<div class="wk_profiledata"><label>Address </label> : ' . $seller_detail['shop_address'][0] . '</div>';
if (strchr(get_permalink(), '?')) {
$icon = '&';
//.........这里部分代码省略.........
开发者ID:pcuervo,项目名称:mobbily-wordpress,代码行数:101,代码来源:index.php
示例4: woocommerce_lostpassword_url
/**
* @deprecated
*/
function woocommerce_lostpassword_url($url)
{
return wc_lostpassword_url($url);
}
开发者ID:nayemDevs,项目名称:woocommerce,代码行数:7,代码来源:wc-deprecated-functions.php
示例5: do_action
<?php do_action( 'woocommerce_login_form_start' ); ?>
<?php if ($message) echo wpautop(wptexturize($message)); ?>
<p class="form-row form-row-first">
<label for="username"><?php _e('Username or email', 'yit'); ?> <span class="required">*</span></label>
<input type="text" class="input-text" name="username" id="username" />
</p>
<p class="form-row form-row-last">
<label for="password"><?php _e('Password', 'yit'); ?> <span class="required">*</span></label>
<input class="input-text" type="password" name="password" id="password" />
</p>
<div class="clear"></div>
<?php do_action( 'woocommerce_login_form' ); ?>
<p class="form-row">
<?php wp_nonce_field( 'woocommerce-login' ) ?>
<input type="submit" class="button" name="login" value="<?php _e('Login', 'yit'); ?>" />
<input type="hidden" name="redirect" value="<?php echo esc_url($redirect) ?>" />
<label for="rememberme" class="inline">
<input name="rememberme" type="checkbox" id="rememberme" value="forever" /> <?php _e( 'Remember me', 'yit' ); ?>
</label>
<a class="lost_password" href="<?php echo esc_url( wc_lostpassword_url() ); ?>"><?php _e( 'Lost your password?', 'yit' ); ?></a>
</p>
<div class="clear"></div>
<?php do_action( 'woocommerce_login_form_end' ); ?>
</form>
开发者ID:simonsays88,项目名称:costa,代码行数:31,代码来源:form-login.php
示例6: etheme_login_form_modal
function etheme_login_form_modal()
{
global $woocommerce;
?>
<div id="loginModal" class="modal hide fade" tabindex="-1" role="dialog" aria-hidden="true">
<div>
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 class="title"><span><?php
_e('Login', ETHEME_DOMAIN);
?>
</span></h3>
</div>
<div class="modal-body">
<?php
do_action('etheme_before_login');
?>
<form method="post" class="login">
<p class="form-row form-row-<?php
if (get_option('woocommerce_enable_myaccount_registration') == 'yes') {
?>
wide<?php
} else {
?>
first<?php
}
?>
">
<label for="username"><?php
_e('Username or email', ETHEME_DOMAIN);
?>
<span class="required">*</span></label>
<input type="text" class="input-text" name="username" id="username" />
</p>
<p class="form-row form-row-<?php
if (get_option('woocommerce_enable_myaccount_registration') == 'yes') {
?>
wide<?php
} else {
?>
last<?php
}
?>
">
<label for="password"><?php
_e('Password', ETHEME_DOMAIN);
?>
<span class="required">*</span></label>
<input class="input-text" type="password" name="password" id="password" />
</p>
<div class="clear"></div>
<p class="form-row">
<?php
wp_nonce_field('woocommerce-login');
?>
<input type="submit" class="button filled active" name="login" value="<?php
_e('Login', ETHEME_DOMAIN);
?>
" />
<a class="lost_password" href="<?php
echo esc_url(wc_lostpassword_url());
?>
"><?php
_e('Lost Password?', ETHEME_DOMAIN);
?>
</a>
<a href="<?php
echo get_permalink(get_option('woocommerce_myaccount_page_id'));
?>
" class="right"><?php
_e('Create Account', ETHEME_DOMAIN);
?>
</a>
</p>
</form>
</div>
</div>
</div>
<?php
}
开发者ID:baridavid,项目名称:themes,代码行数:81,代码来源:woo.php
示例7: bearded_woocommerce_nav
//.........这里部分代码省略.........
<a class="tiptip icon-magic" title="<?php
_e('View Wishlist', 'bearded');
?>
" href="<?php
echo $yith_wcwl->get_wishlist_url();
?>
">
<span class="link-title"><?php
_e('View Wishlist', 'bearded');
?>
</span>
</a>
</li>
<?php
}
?>
<li class="logout">
<a class="tiptip icon-signout" title="<?php
_e('Logout', 'bearded');
?>
" href="<?php
echo wp_logout_url($_SERVER['REQUEST_URI']);
?>
">
<span class="link-title"><?php
_e('Logout', 'bearded');
?>
</span>
</a>
</li>
<?php
} else {
?>
<li class="visit-shop <?php
echo get_query_var('post_type') == 'product' ? 'active' : '';
?>
">
<a class="tiptip icon-home" title="<?php
_e('Visit Shop', 'bearded');
?>
" href="<?php
echo get_permalink(wc_get_page_id('shop'));
?>
">
<span class="link-title"><?php
_e('Visit Shop', 'bearded');
?>
</span>
</a>
</li>
<li class="login <?php
echo !empty($post) && $post->ID == wc_get_page_id('myaccount') && !array_key_exists(get_option('woocommerce_myaccount_lost_password_endpoint'), $wp->query_vars) ? 'active' : '';
?>
">
<a class="tiptip icon-signin" title="<?php
_e('Login', 'bearded');
?>
" href="<?php
echo get_permalink(wc_get_page_id('myaccount'));
?>
">
<span class="link-title"><?php
_e('Login', 'bearded');
?>
</span>
</a>
</li>
<li class="lost-password <?php
echo !empty($post) && $post->ID == wc_get_page_id('myaccount') && array_key_exists(get_option('woocommerce_myaccount_lost_password_endpoint'), $wp->query_vars) ? 'active' : '';
?>
">
<a class="tiptip icon-key" title="<?php
_e('Lost Password', 'bearded');
?>
" href="<?php
echo wc_lostpassword_url();
?>
">
<span class="link-title"><?php
_e('Lost Password', 'bearded');
?>
</span>
</a>
</li>
<?php
}
?>
</ul>
<ul class="cart">
<li class="cart-container">
<?php
bearded_cart_widget();
?>
</li>
</ul>
</nav>
<?php
}
}
开发者ID:jahir07,项目名称:bearded,代码行数:101,代码来源:functions-woocommerce.php
示例8: do_action
<?php do_action( 'woocommerce_login_form' ); ?>
<p class="form-row remember">
<input name="rememberme" type="checkbox" id="rememberme" value="forever" checked />
<label for="rememberme" class="inline remember_checkbox">
</label>
Recordar sesión.
</p>
<p class="form-row">
<?php wp_nonce_field( 'woocommerce-login' ); ?>
<input type="submit" class="button " name="login" value="<?php _e( 'Enviar ', 'woocommerce' ); ?>" />
</p>
<p class="lost_password">
<a href="<?php echo esc_url( wc_lostpassword_url() ); ?>"><?php _e( 'Olvidaste tu Contraseña?', 'woocommerce' ); ?></a>
</p>
<p class="wc_account">
<a data-toggle="modal" data-target="#modal__register_wc" data-dismiss="modal" href="#">Aún no tienes tu cuenta. Regístrate aquí</a>
</p>
<?php do_action( 'woocommerce_login_form_end' ); ?>
</form> <!-- /form -->
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</section><!-- /.modal__login_wc -->
<!-- Modal para el registro en woocommerce ( Nuevo ) -->
<section class="modal fade fade modal__wc" id="modal__register_wc" tabindex="-1" role="dialog" aria-labelledby="modal__login_wc" aria-hidden="true">
开发者ID:JDarkGreen,项目名称:wpmaletek,代码行数:31,代码来源:header.php
示例9: widget
//.........这里部分代码省略.........
do_action('woocommerce_login_form_start');
?>
<div class="form-group">
<label for="username"><?php
_e('Username or email address', 'yit');
?>
<span class="required">*</span></label>
<input type="text" class="form-control" name="username" id="username" />
</div>
<div class="form-group">
<label for="password"><?php
_e('Password', 'yit');
?>
<span class="required">*</span></label>
<input class="form-control" type="password" name="password" id="password" />
</div>
<?php
do_action('woocommerce_login_form');
?>
<div class="form-group login-submit">
<?php
wp_nonce_field('woocommerce-login');
?>
<input type="submit" class="button btn btn-flat-red button-login" name="login" value="<?php
_e('Login', 'yit');
?>
" />
<p class="lost_password">
<?php
if (function_exists('wc_lostpassword_url')) {
?>
<a href="<?php
echo esc_url(wc_lostpassword_url());
?>
"><?php
_e('Lost password?', 'yit');
?>
</a><br />
<?php
}
?>
<?php
if ($enabled_registration === 'yes') {
?>
<?php
_e('New Customer ?', 'yit');
?>
<a class="signup" href="<?php
echo esc_url(is_shop_installed() ? get_permalink(wc_get_page_id('myaccount')) : wp_registration_url());
?>
"><?php
_e('Sign up', 'yit');
?>
</a>
<?php
}
?>
</p>
<!-- <label for="rememberme" class="inline">
<input name="rememberme" type="checkbox" id="rememberme" value="forever" /> <?php
_e('Remember me', 'yit');
?>
开发者ID:NgocSon2412,项目名称:website_banhang,代码行数:67,代码来源:YIT_Woocommerce_Login.php
示例10: spreview
//.........这里部分代码省略.........
</div>
</div>
<div class="wk_feedback_popup">
<input type='hidden' value="<?php
echo $user_value;
?>
" id="feedbackloged_in_status" />
<div id="fb-root"></div>
<div class="wk_cross_login"></div>
<?php
$feedback_url = '';
?>
<div id='feedback_form'>
<?php
wc_print_notices();
?>
<form action="<?php
$params = array('page' => "eFeed", 'sid' => $_GET['sid']);
$url = add_query_arg($params, get_permalink());
echo $url;
?>
" method="post" class="login">
<p class="form-row form-row-wide">
<label for="username"><?php
_e('Username or email address', 'marketplace');
?>
<span class="required">*</span></label>
<input type="text" class="input-text" name="wkmp_username" id="username" value="<?php
if (!empty($_POST['username'])) {
echo esc_attr($_POST['username']);
}
?>
" />
</p>
<p style="display:none;">
<input type="hidden" name="wkfb_mp_key_app_idID" id="wkfb_mp_key_app_idID" value="<?php
echo get_option('wkfb_mp_key_app_ID');
?>
" />
<input type="hidden" name="wkfb_mp_app_secret_kekey" id="wkfb_mp_app_secret_kekey" value="<?php
echo get_option('wkfb_mp_app_secret_key');
?>
" />
<input type="hidden" name="wkfacebook_login_page_id" id="wkfacebook_login_page_id" value="<?php
echo $wpmp_obj10->get_page_id("'" . get_option('wkmp_seller_login_page_tile') . "'");
?>
" />
</p>
<p class="form-row form-row-wide">
<label for="password"><?php
_e('Password', 'marketplace');
?>
<span class="required">*</span></label>
<input class="input-text" type="password" name="password" id="password" />
</p>
<!-- <label for="rememberme" class="inline">
<input name="rememberme" type="checkbox" id="rememberme" value="forever" /> <?php
_e('Remember me', 'marketplace');
?>
</label> -->
<p class="form-row mp-login-button">
<?php
wp_nonce_field('marketplace-user');
?>
<input type="submit" class="button" id='submit-btn-feedback' name="login" value="<?php
_e('Login', 'marketplace');
?>
" /> <!--<a href="<?php
echo wp_registration_url();
?>
" class="button"><?php
_e("Register");
?>
</a> -->
<a href="<?php
echo esc_url(wc_lostpassword_url());
?>
"><?php
_e('Lost your password?', 'marketplace');
?>
</a>
<a href="javascript:void(0);"><img border="0" id='mp-fb-login-btn'/></a>
<!-- <div class="fb-login-button" data-max-rows="1" data-size="medium" data-show-faces="false" data-auto-logout-link="false"></div> -->
</p>
<!--
<p class="lost_password">
</p> -->
</form>
</div>
</div>
<?php
}
开发者ID:pcuervo,项目名称:mobbily-wordpress,代码行数:101,代码来源:spreview.php
示例11: shortcode_func
update_post_meta($post_id, 'audio_setting', sanitize_text_field($_POST['audio_setting']));
update_post_meta($post_id, 'video_setting', sanitize_text_field($_POST['video_setting']));
}
}
/*---------------shortcode for div ----------------------------*/
JVLibrary::jvShortcode('shortcode', 'shortcode_func');
function shortcode_func($att, $content = null)
{
$class = isset($att['class']) ? "class='" . $att['class'] . "'" : "";
$id = isset($att['id']) ? "id='" . $att['id'] . "'" : "";
$content = str_replace('<br />', '', $content);
$content = str_replace('<p>', '', $content);
$content = str_replace('</p>', '', $content);
return '<article ' . $class . ' ' . $id . '>' . do_shortcode($content) . '</article>';
}
JVLibrary::jvShortcode('section', 'section_func');
function section_func($att, $content = null)
{
$class = isset($att['class']) ? "class='" . $att['class'] . "'" : "";
$id = isset($att['id']) ? "id='" . $att['id'] . "'" : "";
return '<section ' . $class . ' ' . $id . '>' . do_shortcode($content) . '</section>';
}
JVLibrary::jvShortcode('container', 'container_func');
function container_func($att, $content = null)
{
return '<div class="container">' . do_shortcode($content) . '</div>';
}
JVLibrary::jvShortcode('row', 'row_func');
function row_func($att, $content = null)
{
return '<div class="row">' . do_shortcode($content) . '</div>';
}
JVLibrary::jvShortcode('div', 'div_func');
function div_func($att, $content = null)
{
$class = isset($att['class']) ? "class='" . $att['class'] . "'" : "";
$id = isset($att['id']) ? "id='" . $att['id'] . "'" : "";
return '<div ' . $class . ' ' . $id . '>' . do_shortcode($content) . '</div>';
}
JVLibrary::jvShortcode('col', 'col_func');
function col_func($att, $content = null)
{
$class = isset($att['class']) ? "class='" . $att['class'] . "'" : "";
$id = isset($att['id']) ? "id='" . $att['id'] . "'" : "";
return '<div ' . $class . ' ' . $id . '>' . do_shortcode($content) . '</div>';
}
JVLibrary::jvShortcode('p', 'p_func');
function p_func($att, $content = null)
{
$class = isset($att['class']) ? "class='" . $att['class'] . "'" : "";
$id = isset($att['id']) ? "id='" . $att['id'] . "'" : "";
return '<p ' . $class . ' ' . $id . '>' . do_shortcode($content) . '</p>';
}
JVLibrary::jvShortcode('jv_video', 'video_func');
function video_func($att, $content = null)
{
$iframe = "iframe";
$width = isset($att['width']) ? 'width="' . $att['width'] . '"' : "";
$height = isset($att['height']) ? 'height="' . $att['height'] . '"' : "";
if (strpos($content, 'youtube.com')) {
$id_video = substr($content, strrpos($content, "=") + 1);
return '<' . $iframe . ' src="https://www.youtube.com/embed/' . $id_video . '" frameborder="0" ' . $width . ' ' . $height . ' allowfullscreen></' . $iframe . '>';
} else {
$id_video = substr($content, strrpos($content, "/") + 1);
return '<' . $iframe . ' src="https://player.vimeo.com/video/' . $id_video . '" ' . $width . ' ' . $height . ' ></' . $iframe . '>';
}
}
JVLibrary::jvShortcode('jv_audio', 'audio_func');
function audio_func($att, $content = null)
{
$iframe = "iframe";
$width = isset($att['width']) ? 'width="' . $att['width'] . '"' : "";
$height = isset($att['height']) ? 'height="' . $att['height'] . '"' : "";
$url_api = 'https://api.soundcloud.com/resolve.json?url=' . $content . '&client_id=b45b1aa10f1ac2941910a7f0d10f8e28';
global $wp_filesystem;
$result = $wp_filesystem->get_contents($url_api);
if (isset($result)) {
$api = json_decode($result);
if (isset($api->id)) {
return '<' . $iframe . ' ' . $width . ' ' . $height . ' scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/' . $api->id . '&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true"></' . $iframe . '>';
} else {
return "Can not load content from https://soundcloud.com/";
}
} else {
return "Invalid url of https://soundcloud.com/";
}
}
JVLibrary::jvShortcode('home_url', 'home_url_func');
function home_url_func()
{
return home_url();
}
JVLibrary::jvShortcode('woo_login_form', 'woo_login_form_func');
function woo_login_form_func()
{
ob_start();
global $post;
if (is_user_logged_in()) {
$current_user = wp_get_current_user();
$actual_link = "http://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
//.........这里部分代码省略.........
开发者ID:taeche,项目名称:SoDoEx,代码行数:101,代码来源:function.php
注:本文中的wc_lostpassword_url函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论