ailoginout

[ailoginout] shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[ailoginout]'); 
  1. // variable usage 
  2. $result = do_shortcode('[ailoginout]'); 
  3. echo $result;  

Defined (1)

The shortcode is defined in the following location(s).

/include/frontend.inc.php  
  1. return 'Hello ' . $current_user->user_login . ', <a href="' . esc_url( $href ) . '"' .$edit_tag . '>' . $content . '</a>'; 
  2.  
  3. /** [ailoginout] shortcode */ 
  4. add_shortcode( 'ailoginout', 'aiwoo_shortcode_loginout' ); 
  5. function aiwoo_shortcode_loginout( $atts, $content = null ) { 
  6. global $woocommerce; 
  7. extract(shortcode_atts(array( 
  8. "edit_tag" => "",  
  9. "redirect" => get_permalink( woocommerce_get_page_id( 'myaccount' ) )