芝麻web文件管理V1.00
编辑当前文件:/home/ephorei/www/wp-content/plugins/suretriggers/src/Integrations/wplms/wplms.php
name = __( 'WPLMS', 'suretriggers' ); $this->description = __( 'WPLMS is a social network plugin for WordPress that allows you to quickly add a social network.', 'suretriggers' ); $this->icon_url = SURE_TRIGGERS_URL . 'assets/icons/WPLMS.svg'; parent::__construct(); } /** * Get customer context data. * * @param int $course_id course. * * @return array */ public static function get_wplms_course_context( $course_id ) { $courses = get_post( $course_id ); $context['wplms_course'] = $courses->ID; $context['wplms_course_name'] = $courses->post_name; $context['wplms_course_title'] = $courses->post_title; return $context; } /** * Is Plugin depended plugin is installed or not. * * @return bool */ public function is_plugin_installed() { return class_exists( 'WPLMS_Init' ); } } IntegrationsController::register( WPLMS::class );