GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
Public Member Functions | Protected Attributes
GravityView_Theme_Hooks_Elegant_Themes Class Reference

More...

Inheritance diagram for GravityView_Theme_Hooks_Elegant_Themes:
GravityView_Plugin_and_Theme_Hooks

Public Member Functions

 add_hooks ()
 
 add_hooks_admin_init ()
 Prevent Divi from adding their stuff to GV pages. More...
 
 maybe_admin_excluded_shortcodes ( $shortcodes)
 Maybe prevent Divi (and others) from rendering our Widgets in the Page Builders Sidebar widget. More...
 
- Public Member Functions inherited from GravityView_Plugin_and_Theme_Hooks
 __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 Attributes

 $function_name = 'et_setup_theme'
 
- Protected Attributes inherited from GravityView_Plugin_and_Theme_Hooks
 $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...
 

Additional Inherited Members

- Protected Member Functions inherited from GravityView_Plugin_and_Theme_Hooks
 add_hooks ()
 Add filters for meta key and script/style handles, if defined. More...
 

Detailed Description

Since
1.17.2

Definition at line 19 of file class-gravityview-plugin-hooks-elegant-themes.php.

Member Function Documentation

◆ add_hooks()

add_hooks ( )

◆ add_hooks_admin_init()

add_hooks_admin_init ( )

Prevent Divi from adding their stuff to GV pages.

Definition at line 36 of file class-gravityview-plugin-hooks-elegant-themes.php.

References gravityview().

◆ maybe_admin_excluded_shortcodes()

maybe_admin_excluded_shortcodes (   $shortcodes)

Maybe prevent Divi (and others) from rendering our Widgets in the Page Builders Sidebar widget.

Divi (among others) tries to render all the widgets in the sidebar. Our Widgets are not designed to be rendered in the administration panel.

Try to find the sidebar it wants to render, see if it contains our Widgets and prevent it from being rendered if it does. Allow everything else through.

See also
https://github.com/gravityview/GravityView/issues/914
Parameters
array$shortcodesThe shortcodes that should not be rendered in the Page Builder.
Returns
array The shortcodes that should not be rendered in the Page Builder.

Find the et_pb_sidebar shortcode and the area it's assigned to.

Blocklisted widgets.

Definition at line 65 of file class-gravityview-plugin-hooks-elegant-themes.php.

References $post.

Field Documentation

◆ $function_name

$function_name = 'et_setup_theme'
protected

Since
1.17.2

Definition at line 25 of file class-gravityview-plugin-hooks-elegant-themes.php.


The documentation for this class was generated from the following file: