Last active
December 28, 2020 01:04
-
-
Save danfisher85/8051d1f782578811892c483809acfe4a to your computer and use it in GitHub Desktop.
[SportsPress] - add a custom field to SportsPress settings
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
if ( ! function_exists( 'add_custom_field_to_team_options' ) ) { | |
function add_custom_field_to_team_options( $options = array() ) { | |
$options[] = array( | |
'title' => 'Testify', | |
'desc' => 'Custom Option goes here', | |
'id' => 'sportspress_team_test', | |
'default' => 'no', | |
'type' => 'checkbox', | |
); | |
return $options; | |
} | |
add_filter( 'sportspress_team_options', 'add_custom_field_to_team_options' ); | |
} | |
// result https://take.ms/OKoRT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment