fewbricks\fewbricks::fewbricks_hidden_exists PHP Méthode

fewbricks_hidden_exists() private static méthode

private static fewbricks_hidden_exists ( ) : boolean
Résultat boolean
    private static function fewbricks_hidden_exists()
    {
        $fewbricks_hidden_exists = file_exists(plugin_dir_path(__FILE__) . '../../acf-fewbricks-hidden/acf-fewbricks-hidden.php');
        if (!$fewbricks_hidden_exists) {
            // If acf-fewbricks-hidden is not where it's supposed to be. Note that this check does not tell us if
            // acf-fewbricks-hidden is activated or not.
            $fewbricks_hidden_exists = false;
            add_action('admin_notices', function () {
                echo self::$messages['fewbricks_hidden_missing'];
            });
        }
        return $fewbricks_hidden_exists;
    }