Skip to content

Instantly share code, notes, and snippets.

@jameskoster
Created February 18, 2014 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jameskoster/9068565 to your computer and use it in GitHub Desktop.
Save jameskoster/9068565 to your computer and use it in GitHub Desktop.
Projects - Add a custom field to the project details meta box
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' );
@DanielSanchez
Copy link

What is the section key used for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment