Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #28564, comment 1


Ignore:
Timestamp:
06/17/2014 03:02:48 PM (10 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28564, comment 1

    initial v1  
    55{{{
    66function footag_func( $atts ) {
    7      return "foo = {$atts['foo']}";
     7     return "title = {$atts['title']}";
    88}
    9 add_shortcode('footag', 'footag_func');
     9add_shortcode( 'expand', 'footag_func' );
    1010}}}
    11112. Create a post with this content: `[expand title="<strong>Strong Test</strong>"][/expand]`.