From 84297941dc0b5aa73010a512a774e26a58828be4 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Wed, 15 Nov 2017 22:50:44 +1100 Subject: [PATCH] Add text options for officials --- modules/sportspress-officials.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/sportspress-officials.php b/modules/sportspress-officials.php index 2a093479..5be0edb6 100644 --- a/modules/sportspress-officials.php +++ b/modules/sportspress-officials.php @@ -47,6 +47,7 @@ class SportsPress_Officials { add_filter( 'sportspress_calendar_columns', array( $this, 'calendar_columns' ) ); add_filter( 'sportspress_after_event_template', array( $this, 'add_event_template' ), 30 ); add_filter( 'sportspress_event_options', array( $this, 'add_event_options' ) ); + add_filter( 'sportspress_text', array( $this, 'add_text_options' ) ); add_filter( 'sportspress_screen_ids', array( $this, 'screen_ids' ) ); add_filter( 'sportspress_post_types', array( $this, 'add_post_type' ) ); add_filter( 'sportspress_primary_post_types', array( $this, 'add_post_type' ) ); @@ -459,6 +460,15 @@ class SportsPress_Officials { return $options; } + /** + * Add text options + */ + public function add_text_options( $options = array() ) { + return array_merge( $options, array( + __( 'Officials', 'sportspress' ), + ) ); + } + /** * Add screen ids. *