Add filters to taxonomies and native editor to post types

This commit is contained in:
Brian Miyaji
2016-04-11 00:04:24 +10:00
parent 1a24e9fce3
commit 5be69ecb24
12 changed files with 17 additions and 227 deletions

View File

@@ -144,12 +144,6 @@ class SP_Admin_Meta_Boxes {
'context' => 'normal',
'priority' => 'high',
),
'editor' => array(
'title' => __( 'Article', 'sportspress' ),
'output' => 'SP_Meta_Box_Event_Editor::output',
'context' => 'normal',
'priority' => 'low',
),
),
'sp_team' => array(
'details' => array(
@@ -159,12 +153,6 @@ class SP_Admin_Meta_Boxes {
'context' => 'side',
'priority' => 'default',
),
'editor' => array(
'title' => __( 'Profile', 'sportspress' ),
'output' => 'SP_Meta_Box_Team_Editor::output',
'context' => 'normal',
'priority' => 'low',
),
'staff' => array(
'title' => __( 'Staff', 'sportspress' ),
'save' => 'SP_Meta_Box_Team_Staff::save',
@@ -208,12 +196,6 @@ class SP_Admin_Meta_Boxes {
'context' => 'normal',
'priority' => 'high',
),
'editor' => array(
'title' => __( 'Profile', 'sportspress' ),
'output' => 'SP_Meta_Box_Player_Editor::output',
'context' => 'normal',
'priority' => 'low',
),
),
'sp_staff' => array(
'shortcode' => array(
@@ -229,12 +211,6 @@ class SP_Admin_Meta_Boxes {
'context' => 'side',
'priority' => 'default',
),
'editor' => array(
'title' => __( 'Profile', 'sportspress' ),
'output' => 'SP_Meta_Box_Staff_Editor::output',
'context' => 'normal',
'priority' => 'low',
),
),
);

View File

@@ -1,24 +0,0 @@
<?php
/**
* Calendar Editor
*
* @author ThemeBoy
* @category Admin
* @package SportsPress/Admin/Meta_Boxes
* @version 0.8
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
/**
* SP_Meta_Box_Calendar_Editor
*/
class SP_Meta_Box_Calendar_Editor {
/**
* Output the metabox
*/
public static function output( $post ) {
wp_editor( $post->post_content, 'content' );
}
}

View File

@@ -1,24 +0,0 @@
<?php
/**
* Event Editor
*
* @author ThemeBoy
* @category Admin
* @package SportsPress/Admin/Meta_Boxes
* @version 0.8
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
/**
* SP_Meta_Box_Event_Editor
*/
class SP_Meta_Box_Event_Editor {
/**
* Output the metabox
*/
public static function output( $post ) {
wp_editor( $post->post_content, 'content' );
}
}

View File

@@ -1,24 +0,0 @@
<?php
/**
* List Editor
*
* @author ThemeBoy
* @category Admin
* @package SportsPress/Admin/Meta_Boxes
* @version 0.8
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
/**
* SP_Meta_Box_List_Editor
*/
class SP_Meta_Box_List_Editor {
/**
* Output the metabox
*/
public static function output( $post ) {
wp_editor( $post->post_content, 'content' );
}
}

View File

@@ -1,24 +0,0 @@
<?php
/**
* Player Editor
*
* @author ThemeBoy
* @category Admin
* @package SportsPress/Admin/Meta_Boxes
* @version 0.8
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
/**
* SP_Meta_Box_Player_Editor
*/
class SP_Meta_Box_Player_Editor {
/**
* Output the metabox
*/
public static function output( $post ) {
wp_editor( $post->post_content, 'content' );
}
}

View File

@@ -1,24 +0,0 @@
<?php
/**
* Staff Editor
*
* @author ThemeBoy
* @category Admin
* @package SportsPress/Admin/Meta_Boxes
* @version 0.8
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
/**
* SP_Meta_Box_Staff_Editor
*/
class SP_Meta_Box_Staff_Editor {
/**
* Output the metabox
*/
public static function output( $post ) {
wp_editor( $post->post_content, 'content' );
}
}

View File

@@ -1,24 +0,0 @@
<?php
/**
* Table Editor
*
* @author ThemeBoy
* @category Admin
* @package SportsPress/Admin/Meta_Boxes
* @version 0.8
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
/**
* SP_Meta_Box_Table_Editor
*/
class SP_Meta_Box_Table_Editor {
/**
* Output the metabox
*/
public static function output( $post ) {
wp_editor( $post->post_content, 'content' );
}
}

View File

@@ -1,24 +0,0 @@
<?php
/**
* Team Editor
*
* @author ThemeBoy
* @category Admin
* @package SportsPress/Admin/Meta_Boxes
* @version 0.8
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
/**
* SP_Meta_Box_Team_Editor
*/
class SP_Meta_Box_Team_Editor {
/**
* Output the metabox
*/
public static function output( $post ) {
wp_editor( $post->post_content, 'content' );
}
}