Check for NULL
-
if( $object !== NULL && 'nav_menu_item' !== $object->post_type ) {
$old_parent = $post !== NULL ? $post->post_parent : NULL;
Check if object exists before accessing the object ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Check for NULL’ is closed to new replies.