![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/www/wp-content/themes/dt-the7/inc/mods/compatibility/ |
<?php /** * LearnDash LMS compatibility module. * * @since 3.1.0 * @package the7 */ // File Security Check if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Presscore_Modules_Compatibility_LDLMS', false ) ) : class Presscore_Modules_Compatibility_LDLMS { public static function execute() { if ( ! class_exists( 'Semper_Fi_Module', false ) ) { return; } add_action( 'presscore_pages_with_basic_meta_boxes', array( __CLASS__, 'add_meta_boxes_filter' ) ); } /** * Add basic meta boxers for LearnDash post types. * * @param array $post_types * @return array */ public static function add_meta_boxes_filter( $post_types = array() ) { $post_types[] = 'sfwd-lessons'; $post_types[] = 'sfwd-courses'; $post_types[] = 'sfwd-topic'; $post_types[] = 'sfwd-quiz'; return $post_types; } } Presscore_Modules_Compatibility_LDLMS::execute(); endif;