Move common custom post functions into abstract

This commit is contained in:
Brian Miyaji
2014-04-27 17:35:57 +10:00
parent 284b0f1a5f
commit 100f172adc
13 changed files with 99 additions and 259 deletions

View File

@@ -92,7 +92,8 @@ class SP_Admin_CPT_Calendar extends SP_Admin_CPT {
endif;
break;
case 'sp_events':
echo sizeof( sp_get_calendar_data( $post_id ) );
$calendar = new SP_Calendar( $post_id );
echo sizeof( $calendar->data() );
break;
case 'sp_views':
echo sp_get_post_views( $post_id );