includeIfExists
The Google Analytics by Yoast includeIfExists function.
Description
includeIfExists( $file );
Parameters (1)
- 0. $file
- The file.
Usage
if ( !function_exists( 'includeIfExists' ) ) { require_once ABSPATH . PLUGINDIR . 'google-analytics-by-yoast/vendor/composer/installers/src/bootstrap.php'; } // The file. $file = null; // NOTICE! Understand what this does before running. $result = includeIfExists($file);
Defined (1)
The function is defined in the following location(s).
- /vendor/composer/installers/src/bootstrap.php
- function includeIfExists($file)
- {
- if (file_exists($file)) {
- return include $file;
- }
- }