芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/socialdigivlms.com/wp-content/plugins/tutor/classes/Taxonomies.php
* @link https://themeum.com * @since 1.0.0 */ namespace TUTOR; if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Manage taxonomies * * @since 1.0.0 */ class Taxonomies { /** * Register hooks * * @since 1.0.0 */ public function __construct() { add_action( 'course-category_add_form_fields', array( $this, 'add_category_fields' ) ); add_action( 'course-category_edit_form_fields', array( $this, 'edit_category_fields' ) ); add_action( 'created_term', array( $this, 'save_category_fields' ), 10, 3 ); add_action( 'edit_term', array( $this, 'save_category_fields' ), 10, 3 ); add_filter( 'manage_edit-course-category_columns', array( $this, 'course_category_columns' ) ); add_filter( 'manage_course-category_custom_column', array( $this, 'course_category_column' ), 10, 3 ); } /** * Add category fields * * @return void */ public function add_category_fields() { ?>
term_id, 'thumbnail_id', true ) ); if ( $thumbnail_id ) { $image = wp_get_attachment_thumb_url( $thumbnail_id ); } else { $image = tutor_placeholder_img_src(); } ?>
'; } if ( 'handle' === $column ) { $columns .= '
'; } return $columns; } }