2012-12-31 18:25:09 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Change Password Shortcode
|
|
|
|
*
|
|
|
|
* @author WooThemes
|
|
|
|
* @category Shortcodes
|
|
|
|
* @package WooCommerce/Shortcodes/Change_Password
|
|
|
|
* @version 2.0.0
|
|
|
|
*/
|
|
|
|
class WC_Shortcode_Change_Password {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the shortcode content.
|
|
|
|
*
|
|
|
|
* @access public
|
|
|
|
* @param array $atts
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public static function get( $atts ) {
|
|
|
|
global $woocommerce;
|
2013-06-05 13:49:48 +00:00
|
|
|
return $woocommerce->get_helper( 'shortcode' )->shortcode_wrapper( array( __CLASS__, 'output' ), $atts );
|
2012-12-31 18:25:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Output the shortcode.
|
|
|
|
*
|
|
|
|
* @access public
|
|
|
|
* @param array $atts
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public static function output( $atts ) {
|
|
|
|
global $woocommerce;
|
|
|
|
|
|
|
|
if ( ! is_user_logged_in() ) return;
|
|
|
|
|
|
|
|
woocommerce_get_template( 'myaccount/form-change-password.php' );
|
|
|
|
}
|
|
|
|
}
|