$limit_class_size = 'off';
    $marketpress_product = '';
    $woo_product = '';
    $allow_course_discussion = 'off';
    $allow_course_grades_page = 'off';
    $allow_workbook_page = 'off';
    $course_category = 0;
    $language = __('English', 'cp');
    $course_video_url = '';
    $course_setup_progress = array('step-1' => 'incomplete', 'step-2' => 'incomplete', 'step-3' => 'incomplete', 'step-4' => 'incomplete', 'step-5' => 'incomplete', 'step-6' => 'incomplete');
    $course_setup_marker = 'step-1';
    $course_structure_options = 'off';
    $course_structure_time_display = 'off';
}
// Fix issue where previous versions caused nested serial objects when duplicating courses.
$course_setup_progress = cp_deep_unserialize($course_setup_progress);
// Detect gateways for MarketPress
// MarketPress 2.x and MarketPress Lite
$mp_settings = get_option('mp_settings');
$gateways = !empty($mp_settings['gateways']['allowed']) ? true : false;
/**
 * Filter to enable or disable payable courses.
 *
 * @since 1.2.1
 */
$offer_paid = apply_filters('coursepress_offer_paid_courses', true);
?>
<div class='wrap nocoursesub cp-wrap'>
	<form action='<?php 
esc_attr_e(admin_url('admin.php?page=' . $page . ($course_id !== 0 ? '&course_id=' . $course_id : '') . ($course_id !== 0 ? '&ms=cu' : '&ms=ca')));
?>
예제 #2
0
function cp_deep_unserialize($serialized_object)
{
    $new_array = maybe_unserialize($serialized_object);
    if (is_serialized($new_array)) {
        $new_array = cp_deep_unserialize($new_array);
    }
    return $new_array;
}