siteorigin_layout_block_show_add_button

siteorigin_layout_block_show_add_button

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: siteorigin-panels.2.24.0

apply_filters('siteorigin_layout_block_show_add_button') is found 1 times:

  • /compat/layout-block.php line 71
    					'previewUrl' => wp_nonce_url( admin_url( 'admin-ajax.php' ), 'layout-block-preview', '_panelsnonce' ),
    					'postId' => get_the_ID(),
    					'liveEditor' => SiteOrigin_Panels::preview_url(),
    					'defaultMode' => siteorigin_panels_setting( 'layout-block-default-mode' ),
    					'showAddButton' => apply_filters( 'siteorigin_layout_block_show_add_button', $is_panels_post_type ),
    				)
    			);
    			// This is only available in WP5.
    			if ( function_exists( 'wp_set_script_translations' ) ) {
    				wp_set_script_translations( 'siteorigin-panels-layout-block', 'siteorigin-panels' );
    			}