public/wordpress/wp-content/plugins/wp-courseware/includes/core/blocks.php
/**
	 * Blocks Post Type Support.
	 *
	 * @since 4.5.1
	 *
	 * @param bool   $use_block_editor Whether the post type can be edited or not. Default true.
	 * @param string $post_type The post type being checked.
	 */
Blocks Post Type Support.

@param bool   $use_block_editor Whether the post type can be edited or not. Default true.
@param string $post_type The post type being checked.
Blocks Post Type Support . @param bool $use_block_editor Whether the post type can be edited or not . Default true . @param string $post_type The post type being checked .
public function post_type_support( $use_block_editor, $post_type ) {
		$disabled_post_types = apply_filters( 'wpcw_blocks_disabled_post_types', array( wpcw()->courses->post_type_slug ) );
		$enabled_post_types  = apply_filters( 'wpcw_blocks_enabled_post_types', array( wpcw()->units->post_type_slug ) );
		if ( in_array( $post_type, $disabled_post_types, true ) ) {
			$use_block_editor = false;
		}
		if ( in_array( $post_type, $enabled_post_types, true ) ) {
			$use_block_editor = true;
		}
		return $use_block_editor;
	}
public function post_type_support ( $ use_block_editor , $ post_type ) { $ disabled_post_types = apply_filters ( 'wpcw_blocks_disabled_post_types' , array ( wpcw ( ) -> courses -> post_type_slug ) ) ; $ enabled_post_types = apply_filters ( 'wpcw_blocks_enabled_post_types' , array ( wpcw ( ) -> units -> post_type_slug ) ) ; if ( in_array ( $ post_type , $ disabled_post_types , true ) ) { $ use_block_editor = false ; } if ( in_array ( $ post_type , $ enabled_post_types , true ) ) { $ use_block_editor = true ; } return $ use_block_editor ; }
Blocks Post Type Support.
Blocks Post Type Support .