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' ); } }