Add event mode to REST API
This commit is contained in:
@@ -26,15 +26,20 @@ class SP_Event extends SP_Custom_Post{
|
||||
return $post_status;
|
||||
}
|
||||
|
||||
public function format() {
|
||||
$format = get_post_meta( $this->ID, 'sp_format', true );
|
||||
return $format;
|
||||
}
|
||||
public function format() {
|
||||
$format = get_post_meta( $this->ID, 'sp_format', true );
|
||||
return $format;
|
||||
}
|
||||
|
||||
public function day() {
|
||||
$day = get_post_meta( $this->ID, 'sp_day', true );
|
||||
return $day;
|
||||
}
|
||||
public function day() {
|
||||
$day = get_post_meta( $this->ID, 'sp_day', true );
|
||||
return $day;
|
||||
}
|
||||
|
||||
public function mode() {
|
||||
$mode = get_post_meta( $this->ID, 'sp_mode', true );
|
||||
return $mode;
|
||||
}
|
||||
|
||||
public function minutes() {
|
||||
$minutes = get_post_meta( $this->ID, 'sp_minutes', true );
|
||||
|
||||
Reference in New Issue
Block a user