PHP Error
-
I am getting a critical error on my website and when I look at the error log it says it is on line 1732. That line says
foreach ( $menu as $i => $item ) {
I’m not sure why it’s giving an error. The info above and below reads:
function remove_menu_page( $menu_slug ) { global $menu; foreach ( $menu as $i => $item ) { if ( $menu_slug == $item[2] ) { unset( $menu[ $i ] ); return $item; } } return false; }
Anyone know what is wrong with this?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘PHP Error’ is closed to new replies.