id = 'licenses'; $this->label = __( 'Licenses', 'sportspress' ); $this->licenses = apply_filters( 'sportspress_licenses', array( 'pro' => array( 'name' => 'SportsPress Pro', 'url' => 'https://account.themeboy.com', ), ) ); if ( sizeof( $this->licenses ) <= 1 ) { return; } add_filter( 'sportspress_settings_tabs_array', array( $this, 'add_settings_page' ), 20 ); add_action( 'sportspress_settings_' . $this->id, array( $this, 'output' ) ); add_action( 'sportspress_settings_save_' . $this->id, array( $this, 'save' ) ); } /** * Output licenses * * @access public * @return void */ public function output() { ?>