Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tracker URL field to WordCamp details report #958

Draft
wants to merge 1 commit into
base: production
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,11 @@ public function fill_data_row( $event ) {
$meta_keys = $this->get_meta_keys();

$row = [
'ID' => $event->ID,
'Name' => $event->post_title,
'Created' => get_the_date( 'Y-m-d', $event->ID ),
'Status' => $event->post_status,
'ID' => $event->ID,
'Tracker URL' => get_edit_post_link( $event->ID ),
'Name' => $event->post_title,
'Created' => get_the_date( 'Y-m-d', $event->ID ),
'Status' => $event->post_status,
];

foreach ( $meta_keys as $key ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ public function get_private_data_fields() {
'Speakers',
'Sponsors',
'Organizers',
'Tracker URL',
),
array_diff( $this->get_meta_keys(), array_keys( $this->get_public_data_fields() ) )
);
Expand Down Expand Up @@ -171,6 +172,7 @@ public static function get_field_order() {
array(
'ID',
'Name',
'Tracker URL',
),
array_keys( WordCamp_Admin::meta_keys( 'wordcamp' ) ),
array(
Expand Down Expand Up @@ -395,6 +397,7 @@ public static function render_admin_page() {
'End Date (YYYY-mm-dd)' => 'checked',
'Location' => 'checked',
'URL' => 'checked',
'Tracker URL' => 'checked',
);

include get_views_dir_path() . 'report/wordcamp-details.php';
Expand Down