Created
February 18, 2014 10:50
-
-
Save jameskoster/9068565 to your computer and use it in GitHub Desktop.
Projects - Add a custom field to the project details meta box
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
function new_projects_fields( $fields ) { | |
$fields['location'] = array( | |
'name' => __( 'Location', 'projects' ), | |
'description' => __( 'Enter a location for this project.', 'projects' ), | |
'type' => 'text', | |
'default' => '', | |
'section' => 'info' | |
); | |
return $fields; | |
} | |
add_filter( 'projects_custom_fields', 'new_projects_fields' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the section key used for.