on add_combine_js_excluded_inline( $excluded = [] ): array { if ( ! is_array( $excluded ) ) { $excluded = (array) $excluded; } return array_merge( $excluded, $this->dynamic_lists->get_combine_js_excluded_inline() ); } /** * Add the preload exclusions to the array * * @param array $excluded Array of ignored URL regex. * * @return array */ public function add_preload_exclusions( $excluded = [] ): array { if ( ! is_array( $excluded ) ) { $excluded = (array) $excluded; } return array_merge( $excluded, $this->dynamic_lists->get_preload_exclusions() ); } /** * Add the js files exclusions to the array * * @param array $js_files Array of files. * * @return array */ public function add_js_exclude_files( $js_files = [] ): array { if ( ! is_array( $js_files ) ) { $js_files = (array) $js_files; } return array_merge( $js_files, $this->dynamic_lists->get_js_exclude_files() ); } /** * Add incompatible plugins to the array * * @param array $plugins Array of $plugins. * * @return array */ public function add_incompatible_plugins_to_deactivate( $plugins = [] ): array { return array_merge( (array) $plugins, $this->dynamic_lists->get_incompatible_plugins() ); } }