Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 107
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 234
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 235
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 236
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 237
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 238
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 239
* @link https://themeum.com
* @since 2.0.0
*/
namespace TUTOR;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Course Settings Tabls Class
*
* @since 2.0.0
*/
class Course_Settings_Tabs {
/**
* Constructor
*
* @since 2.0.0
*
* @return void
*/
public function __construct() {
add_action( 'tutor_save_course', array( $this, 'save_course' ), 10, 2 );
add_action( 'tutor_save_course_settings', array( $this, 'save_course' ), 10, 2 );
}
/**
* On course save callback
*
* @since 2.0.0
*
* @param integer $post_ID post ID.
* @param object $post post object.
*
* @return void
*/
public function save_course( $post_ID, $post ) {
$course_settings = Input::post( '_tutor_course_settings', array(), Input::TYPE_ARRAY );
if ( tutor_utils()->count( $course_settings ) ) {
$existing = get_post_meta( $post_ID, '_tutor_course_settings', true );
if ( ! is_array( $existing ) ) {
$existing = array();
}
$meta = array_merge( $existing, $course_settings );
update_post_meta( $post_ID, '_tutor_course_settings', $meta );
}
}
}