ns as $location => $settings ) { if ( ! empty( $settings['is_core'] ) && ! in_array( $location, $allowed_core, true ) ) { unset( $locations[ $location ] ); } } return $locations; } }