Created
January 3, 2016 18:02
-
-
Save JudeRosario/f8cf504aed2bca488dbd to your computer and use it in GitHub Desktop.
Add the location to [app_my_appointments] shortcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('app_my_appointments_column_name' , 'app_table_add_location_column' ) ; | |
function app_table_add_location_column($c) { | |
return $c.'<th class="my-appointments-location">' . __('Location', 'appointments' ) . '</th>' ; | |
} | |
add_filter('app-shortcode-my_appointments-after_status' , 'app_table_add_location_column_cell', 10 , 2 ) ; | |
function app_table_add_location_column_cell($c, $r) { | |
return $r->location ? '<td>'. $r->location .'</td>' : '<td> - </td>' ; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment