woocommerce/includes/shortcodes/class-wc-shortcode-change-p...

37 lines
714 B
PHP
Raw Normal View History

<?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 ) {
2013-08-09 16:11:15 +00:00
return WC_Shortcodes::shortcode_wrapper( array( __CLASS__, 'output' ), $atts );
}
/**
* 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' );
}
}