WPTT / WPThemeReview

PHP_CodeSniffer rules (sniffs) to enforce WordPress theme review coding conventions
MIT License
207 stars 38 forks source link

sniff: plugin territory - action hook wp_edit_nav_menu_walker #231

Open joyously opened 4 years ago

joyously commented 4 years ago

The wp_edit_nav_menu_walker filter filters the Walker class used when adding nav menu items. https://developer.wordpress.org/reference/hooks/wp_edit_nav_menu_walker/

Since that is in the admin, for creating menus, the theme should not be involved.

Code Samples:

see theme ticket 71573 and the 16 themes shown in this search: https://wpdirectory.net/search/01DKJ170ASXJ4CMDDTQ4JF9M9K