<?php $object_slugs = 'all'; //$object_slugs = ['all']; // $object_slugs = ['all', 'some-other-string']; if ( ( is_array( $object_slugs ) && 1 === count( $object_slugs ) && 'all' === $object_slugs[0] ) || ( is_string( $object_slugs ) && 'all' === $object_slugs ) ) { var_dump( 'INSIDE IF' ); exit; } var_dump( 'OUTSIDE IF' );
You have javascript disabled. You will not be able to edit any code.