Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function add_menu_atts( $atts, $item, $args ) {
- $atts['itemprop'] = 'url';
- return $atts;
- }
- add_filter( 'nav_menu_link_attributes', 'add_menu_atts', 10, 3 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement