Themehunk Megamenu Plus Shortcode

Below, you’ll find a detailed guide on how to add the Themehunk Megamenu Plus Shortcode to your WordPress website, including its parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the Themehunk Megamenu Plus Plugin shortcode not to show or not to work correctly.

Before starting, here is an overview of the Themehunk Megamenu Plus Plugin and the shortcodes it provides:

Plugin Icon
Easy Mega Menu Plugin for WordPress – ThemeHunk

"Easy Mega Menu Plugin for WordPress – ThemeHunk is a powerful tool for creating custom, responsive mega menus in your WordPress site. Simply install the themehunk-megamenu-plus plugin and enhance your site's navigation."

✩✩✩✩✩ () Active Installs: 5000+ Tested with: 6.1.4 PHP Version: false
Included Shortcodes:
  • [themehunk_megamenu_test_shortcode]

Themehunk Megamenu Plus [themehunk_megamenu_test_shortcode] Shortcode

The ‘themehunk_megamenu_test_shortcode’ helps retrieve and display navigation menu locations. It fetches the updated menu layout data, obtains available menus, and returns the menu locations.

Shortcode: [themehunk_megamenu_test_shortcode]

Examples and Usage

Basic example – The following shortcode displays the navigation locations available in the ThemeHunk MegaMenu.

[themehunk_megamenu_test_shortcode /]

PHP Function Code

In case you have difficulties debugging what causing issues with [themehunk_megamenu_test_shortcode] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode( 'themehunk_megamenu_test_shortcode', 'themehunk_megamenu_test_shortcode_function' );

Shortcode PHP function:

function themehunk_megamenu_test_shortcode_function(){ 
      // $options = get_option( 'themehunk_megamenu_options' );
    $updated_data = get_post_meta( 1807, 'themehunk_megamenu_layout', true );

    $themehunk_megamenu_nav_locations = get_nav_menu_locations();
    $available_menus = wp_get_nav_menus();

    return print_r($themehunk_megamenu_nav_locations);
    // return '<pre>'. print_r($available_menus) . '</pre>';

Code file location:



Now that you’ve learned how to embed the Themehunk Megamenu Plus Plugin shortcode, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.


Leave a Reply

Your email address will not be published. Required fields are marked *