GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
Abstract class that makes it easy for plugins and themes to register no-conflict scripts and styles, as well as add post meta keys for GravityView to parse when checking for the existence of shortcodes in content. More...
Public Member Functions | |
__construct () | |
GravityView_Theme_Support constructor. More... | |
_wp_loaded () | |
Fired when all themes and plugins have been loaded. More... | |
merge_content_meta_keys ( $meta_keys=array(), $post=null, & $views=null) | |
Merge plugin or theme meta keys that store shortcode data with existing keys to check. More... | |
merge_meta_keys ( $meta_keys=array(), $post_id=0) | |
Merge plugin or theme meta keys that store shortcode data with existing keys to check. More... | |
merge_noconflict_scripts ( $handles) | |
Merge plugin or theme scripts with existing no-conflict scripts. More... | |
merge_noconflict_styles ( $handles) | |
Merge plugin or theme styles with existing no-conflict styles. More... | |
merge_post_type_support ( $supports=array(), $is_hierarchical=false) | |
Merge plugin or theme post type support definitions with existing support values. More... | |
Protected Member Functions | |
add_hooks () | |
Add filters for meta key and script/style handles, if defined. More... | |
Protected Attributes | |
$class_name = false | |
string Optional. More... | |
$constant_name = false | |
string Optional. More... | |
$content_meta_keys = array() | |
Define the keys to be parsed by the gravityview/view_collection/from_post/meta_keys hook. More... | |
$function_name = false | |
string Optional. More... | |
$meta_keys = array() | |
Define the keys to be parsed by the gravityview/data/parse/meta_keys hook. More... | |
$post_type_support = array() | |
Define features in the admin editor used by the theme or plugin to be used when registering the GravityView post type. More... | |
$script_handles = array() | |
Define script handles used by the theme or plugin to be added to allowed no-conflict scripts. More... | |
$style_handles = array() | |
Define style handles used by the theme or plugin to be added to allowed no-conflict styles. More... | |
Private Member Functions | |
maybe_add_hooks () | |
Check whether plugin or theme exists. More... | |
Abstract class that makes it easy for plugins and themes to register no-conflict scripts and styles, as well as add post meta keys for GravityView to parse when checking for the existence of shortcodes in content.
Definition at line 22 of file abstract-gravityview-plugin-and-theme-hooks.php.
__construct | ( | ) |
GravityView_Theme_Support constructor.
Definition at line 87 of file abstract-gravityview-plugin-and-theme-hooks.php.
_wp_loaded | ( | ) |
Fired when all themes and plugins have been loaded.
This makes sure we can reliably detect functions and classes.
Definition at line 97 of file abstract-gravityview-plugin-and-theme-hooks.php.
References maybe_add_hooks().
|
protected |
Add filters for meta key and script/style handles, if defined.
Definition at line 125 of file abstract-gravityview-plugin-and-theme-hooks.php.
Referenced by maybe_add_hooks().
|
private |
Check whether plugin or theme exists.
If so, add hooks. This is to reduce load time, since apply_filters()
isn't free. If the class name or function name or constant exists for a plugin or theme, add hooks If the class/function/definition aren't speicifed add the hooks
Definition at line 110 of file abstract-gravityview-plugin-and-theme-hooks.php.
References add_hooks().
Referenced by _wp_loaded().
merge_content_meta_keys | ( | $meta_keys = array() , |
|
$post = null , |
|||
& | $views = null |
||
) |
Merge plugin or theme meta keys that store shortcode data with existing keys to check.
array | $handles | Array of meta keys to check for existence of shortcodes |
\WP_Post | $post | The ID being checked by GravityView |
Definition at line 217 of file abstract-gravityview-plugin-and-theme-hooks.php.
References $meta_keys.
merge_meta_keys | ( | $meta_keys = array() , |
|
$post_id = 0 |
|||
) |
Merge plugin or theme meta keys that store shortcode data with existing keys to check.
array | $handles | Array of meta keys to check for existence of shortcodes |
int | $post_id | The ID being checked by GravityView |
Definition at line 203 of file abstract-gravityview-plugin-and-theme-hooks.php.
References $meta_keys.
merge_noconflict_scripts | ( | $handles | ) |
Merge plugin or theme scripts with existing no-conflict scripts.
array | $handles | Array of script handles, as registered with WordPress |
Definition at line 186 of file abstract-gravityview-plugin-and-theme-hooks.php.
merge_noconflict_styles | ( | $handles | ) |
Merge plugin or theme styles with existing no-conflict styles.
array | $handles | Array of style handles, as registered with WordPress |
Definition at line 172 of file abstract-gravityview-plugin-and-theme-hooks.php.
merge_post_type_support | ( | $supports = array() , |
|
$is_hierarchical = false |
|||
) |
Merge plugin or theme post type support definitions with existing support values.
array | $supports | Array of features associated with a functional area of the edit screen. |
boolean | $is_hierarchical | Do Views support parent/child relationships? See gravityview_is_hierarchical filter. |
Definition at line 158 of file abstract-gravityview-plugin-and-theme-hooks.php.
|
protected |
string Optional.
Class that should be exist in a plugin or theme. Used to check whether plugin is active.
Definition at line 28 of file abstract-gravityview-plugin-and-theme-hooks.php.
|
protected |
string Optional.
Constant that should be defined by plugin or theme. Used to check whether plugin is active.
Definition at line 40 of file abstract-gravityview-plugin-and-theme-hooks.php.
|
protected |
Define the keys to be parsed by the gravityview/view_collection/from_post/meta_keys
hook.
Definition at line 48 of file abstract-gravityview-plugin-and-theme-hooks.php.
|
protected |
string Optional.
Function that should be exist in a plugin or theme. Used to check whether plugin is active.
Definition at line 34 of file abstract-gravityview-plugin-and-theme-hooks.php.
|
protected |
Define the keys to be parsed by the gravityview/data/parse/meta_keys
hook.
Definition at line 57 of file abstract-gravityview-plugin-and-theme-hooks.php.
Referenced by GravityView_Plugin_Hooks_ACF\add_meta_keys_from_post(), GravityView_Theme_Hooks_SiteOrigin\merge_content_meta_keys(), merge_content_meta_keys(), and merge_meta_keys().
|
protected |
Define features in the admin editor used by the theme or plugin to be used when registering the GravityView post type.
Definition at line 81 of file abstract-gravityview-plugin-and-theme-hooks.php.
|
protected |
Define script handles used by the theme or plugin to be added to allowed no-conflict scripts.
Definition at line 65 of file abstract-gravityview-plugin-and-theme-hooks.php.
|
protected |
Define style handles used by the theme or plugin to be added to allowed no-conflict styles.
Definition at line 73 of file abstract-gravityview-plugin-and-theme-hooks.php.