• Just curious if there is a reason not to use the WordPress Shortcode API for this instead of adding your own filter and preg_replace?

    Wouldn’t
    /* line break */
    add_shortcode(‘br’, ‘jb_linebreak’);
    function jb_linebreak() {
    return ‘
    ‘;
    }

    do the same thing with a lot less code?

    Also wondering why all the defines up front?

    http://ww.wp.xz.cn/extend/plugins/line-break-shortcode/

The topic ‘Shorcode API’ is closed to new replies.