/** * Constructor * */ public function __construct() { parent::__construct(); // Set nonce variables $this->module_name = basename(__FILE__, '.php'); $this->nonce_name = $this->module_name . '_nonce'; $this->nonce_timetable = $this->nonce_name . '_timetable'; // Register f**k procedure to save custom fields add_action('save_post', array($this, 'save_custom_fields')); // Register f**k procedure to display MTSBB Room list view add_filter("manage_edit-" . self::POST_TYPE . "_columns", array($this, 'get_column_titles')); // カスタム投稿タイプのedit.phpに表示するカスタムカラム処理のフック add_action('manage_posts_custom_column', array($this, 'out_custom_column')); // Load JavaScript at post.php add_action("admin_print_scripts-post.php", array($this, 'post_enqueue_script')); add_action("admin_print_scripts-post-new.php", array($this, 'post_enqueue_script')); // AJAX登録 add_action('wp_ajax_mtssb_get_timetable', array($this, 'ajax_get_the_timetable')); }