Created
August 21, 2020 12:15
-
-
Save Farmatique/0dac4fbc12117c863c69d9d9e8cbffff to your computer and use it in GitHub Desktop.
Get each item of menu in Wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$menu_items = wp_get_nav_menu_items( 'social-menu' ); | |
foreach( $menu_items as $item ) { | |
print_r($item); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment