siteorigin_panels_add_preview_content

siteorigin_panels_add_preview_content

Hook Type: filter

See hook in core

Displaying hooks found in version: siteorigin-panels.2.31.3

apply_filters('siteorigin_panels_add_preview_content') is found 2 times:

  • /inc/admin.php line 205
    	public function render_meta_boxes( $post ) {
    		$panels_data = $this->get_current_admin_panels_data();
    		$preview_url = SiteOrigin_Panels::preview_url();
    
    		if ( apply_filters( 'siteorigin_panels_add_preview_content', true ) ) {
    			$preview_content = apply_filters( 'siteorigin_panels_add_preview_content', true ) ? $this->generate_panels_preview( $post->ID, $panels_data ) : '';
    		}
    
    		$builder_id = uniqid();
    		$builder_type = apply_filters( 'siteorigin_panels_post_builder_type', 'editor_attached', $post, $panels_data );
    		$builder_supports = apply_filters( 'siteorigin_panels_builder_supports', array(), $post, $panels_data );
    
  • /inc/admin.php line 206
    		$panels_data = $this->get_current_admin_panels_data();
    		$preview_url = SiteOrigin_Panels::preview_url();
    
    		if ( apply_filters( 'siteorigin_panels_add_preview_content', true ) ) {
    			$preview_content = apply_filters( 'siteorigin_panels_add_preview_content', true ) ? $this->generate_panels_preview( $post->ID, $panels_data ) : '';
    		}
    
    		$builder_id = uniqid();
    		$builder_type = apply_filters( 'siteorigin_panels_post_builder_type', 'editor_attached', $post, $panels_data );
    		$builder_supports = apply_filters( 'siteorigin_panels_builder_supports', array(), $post, $panels_data );
    		include plugin_dir_path( __FILE__ ) . '../tpl/metabox-panels.php';