GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
load-plugin-and-theme-hooks.php
Go to the documentation of this file.
1 <?php
2 /**
3  * Include files that load plugin and theme hooks
4  *
5  * @file load-plugin-and-theme-hooks.php
6  * @package GravityView
7  * @license GPL2+
8  * @author GravityView <[email protected]>
9  * @link http://gravityview.co
10  * @copyright Copyright 2015, Katz Web Services, Inc.
11  *
12  * @since 1.15.2
13  */
14 
15 /** @define "GRAVITYVIEW_DIR" "../" */
16 $include_path = GRAVITYVIEW_DIR . 'includes/plugin-and-theme-hooks/';
17 
18 // Abstract class
19 require $include_path . 'abstract-gravityview-plugin-and-theme-hooks.php';
20 
21 $plugin_hooks_files = glob( $include_path . 'class-gravityview-plugin-hooks-*.php' );
22 
23 // Load all plugin files automatically
24 foreach ( (array) $plugin_hooks_files as $plugin_hooks_file ) {
25  include $plugin_hooks_file;
26 }
27 
28 $theme_hooks_files = glob( $include_path . 'class-gravityview-theme-hooks-*.php' );
29 
30 // Load all theme files automatically
31 foreach ( (array) $theme_hooks_files as $theme_hooks_file ) {
32  include $theme_hooks_file;
33 }
const GRAVITYVIEW_DIR
"GRAVITYVIEW_DIR" "./" The absolute path to the plugin directory, with trailing slash ...
Definition: gravityview.php:49
foreach((array) $plugin_hooks_files as $plugin_hooks_file) $theme_hooks_files
$include_path
"GRAVITYVIEW_DIR" "../"