30 add_action(
'admin_init', array( $this,
'add_hooks_admin_init' ), 1 );
37 if (
gravityview()->request->is_admin(
'', null ) ) {
39 remove_action(
'admin_init',
'et_pb_register_builder_portabilities' );
42 remove_action(
'admin_head',
'et_add_simple_buttons' );
47 add_action(
'et_pb_admin_excluded_shortcodes', array( $this,
'maybe_admin_excluded_shortcodes' ) );
68 if ( ! $post || ! $post->post_content ) {
75 preg_match(
'#\[et_pb_sidebar .*area="(.*?)"#', $post->post_content, $matches );
77 if ( count( $matches ) != 2 ) {
81 $sidebars_widgets = wp_get_sidebars_widgets();
82 if ( empty( $sidebars_widgets[ $matches[1] ] ) ) {
86 foreach ( $sidebars_widgets[ $matches[1] ] as $widgets ) {
91 strpos( $widgets,
'gravityview_search' ) === 0 ||
92 strpos( $widgets,
'gv_recent_entries' ) === 0
95 $shortcodes []=
'et_pb_sidebar';
new GravityView_Theme_Hooks_Elegant_Themes
add_hooks_admin_init()
Prevent Divi from adding their stuff to GV pages.
gravityview()
The main GravityView wrapper function.
maybe_admin_excluded_shortcodes( $shortcodes)
Maybe prevent Divi (and others) from rendering our Widgets in the Page Builders Sidebar widget...
Abstract class that makes it easy for plugins and themes to register no-conflict scripts and styles...