Add visibility option to player metrics

This commit is contained in:
Brian Miyaji
2017-06-25 09:41:55 +10:00
parent 83ebb9e81b
commit 8317be9c60
3 changed files with 45 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ class SP_Player extends SP_Custom_Post {
*/
public function metrics( $neg = null ) {
$metrics = (array)get_post_meta( $this->ID, 'sp_metrics', true );
$metric_labels = (array)sp_get_var_labels( 'sp_metric', $neg );
$metric_labels = (array)sp_get_var_labels( 'sp_metric', $neg, false );
$data = array();
foreach ( $metric_labels as $key => $value ):