ailogout
[ailogout] shortcode.
Usage
- // basic usage
- echo do_shortcode('[ailogout]');
- // variable usage
- $result = do_shortcode('[ailogout]');
- echo $result;
Defined (1)
The shortcode is defined in the following location(s).
- /include/frontend.inc.php
- $content = $content != '' ? $content : __( 'Log In' );
- return '<a href="' . esc_url( $href ) . '"' .$edit_tag . '>' . $content . '</a>';
- }
- /** [ailogout] shortcode */
- add_shortcode( 'ailogout', 'aiwoo_shortcode_logout' );
- function aiwoo_shortcode_logout( $atts, $content = null ) {
- global $woocommerce;
- extract(shortcode_atts(array(
- "edit_tag" => "",
- "redirect" => get_permalink( woocommerce_get_page_id( 'myaccount' ) )