[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.129.23.179: ~ $
<?php
/**
 * Gutenberg Customization.
 *
 * Used to customize Gutenberg behavior.
 *
 * @since 3.0.0
 * @package LearnDash
 */

namespace LearnDash\Admin\Gutenberg;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Disables the Gutenberg editor on specific custom post types.
 *
 * Fires on `use_block_editor_for_post_type` and `gutenberg_can_edit_post_type` hook.
 *
 * @since 3.0.0
 *
 * @param boolean $is_enabled Whether the Gutenberg editor is enabled or not.
 * @param string  $post_type  Current post type slug.
 *
 * @return boolean Returns true to enable Gutenberg editor otherwise false.
 */
function disable_on_cpts( $is_enabled, $post_type ) {
	// Disable Gutenberg on the following CPTs.
	$disabled_cpts = array(
		'sfwd-question',
		'sfwd-certificates',
		'sfwd-essays',
		// 'groups',
	);

	if ( in_array( $post_type, $disabled_cpts, true ) ) {
		return false;
	}

	return $is_enabled;

}
add_filter( 'use_block_editor_for_post_type', '\LearnDash\Admin\Gutenberg\disable_on_cpts', 10, 2 );
add_filter( 'gutenberg_can_edit_post_type', '\LearnDash\Admin\Gutenberg\disable_on_cpts', 10, 2 );

Filemanager

Name Type Size Permission Actions
classes-binary-selectors Folder 0755
classes-builders Folder 0755
classes-bulk-edit-actions Folder 0755
classes-cloning Folder 0755
classes-data-reports-actions Folder 0755
classes-data-upgrades-actions Folder 0755
classes-filters Folder 0755
classes-import-export Folder 0755
classes-posts-edits Folder 0755
classes-posts-listings Folder 0755
onboarding-templates Folder 0755
class-learndash-admin-action-scheduler.php File 9.47 KB 0644
class-learndash-admin-addons-list-table.php File 17.82 KB 0644
class-learndash-admin-binary-selector.php File 24.65 KB 0644
class-learndash-admin-builder.php File 24.91 KB 0644
class-learndash-admin-data-upgrades.php File 23.72 KB 0644
class-learndash-admin-file-download-handler.php File 10.03 KB 0644
class-learndash-admin-groups-users-list-table.php File 11.93 KB 0644
class-learndash-admin-groups-users-list.php File 14.92 KB 0644
class-learndash-admin-menus-tabs.php File 101.43 KB 0644
class-learndash-admin-pointers.php File 6.07 KB 0644
class-learndash-admin-posts-edit.php File 20.83 KB 0644
class-learndash-admin-posts-listing.php File 98.81 KB 0644
class-learndash-admin-settings-data-reports.php File 15.53 KB 0644
class-learndash-admin-user-profile-edit.php File 20.64 KB 0644
ld-admin.php File 33.35 KB 0644
ld-cloning.php File 494 B 0644
ld-course-builder-helpers.php File 7.02 KB 0644
ld-gutenberg.php File 1.08 KB 0644
ld-import-export.php File 328 B 0644
ld-quiz-builder-helpers.php File 8 KB 0644