WordPress.org

Ready to get started?Download WordPress

Forums

Show Menu Shortcode
Show Menu Shortcode third tag parameter? (1 post)

  1. James Collins
    Member
    Posted 2 years ago #

    Hi Bob,

    Thanks for the plugin. It works well.

    I'm wondering why you have a third parameter for your shorcode_show_menu() function?

    function shortcode_show_menu( $atts, $content, $tag )

    should probably be:

    function shortcode_show_menu( $atts = array(), $content = null )

    See the add_shortcode() documentation/function here: http://core.trac.wordpress.org/browser/trunk/wp-includes/shortcodes.php#L45

    James

    http://wordpress.org/extend/plugins/show-menu-shortcode/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic