Created
April 15, 2014 14:48
-
-
Save pdewouters/10738553 to your computer and use it in GitHub Desktop.
filedmanager group with a repeatable field
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
public function init() { | |
$fm = new Fieldmanager_Group( array( | |
'name' => 'fs_team_fields', | |
'children' => array( | |
'fs_ad_module' => new Fieldmanager_TextArea( 'Hello' ), | |
'repeatabletext' => new Fieldmanager_Textfield( 'Goodbye', array( | |
'limit' => 0, | |
'add_more_label' => 'Add another field', | |
'sortable' => true, | |
'label' => 'Text Field' | |
) ) | |
) | |
) ); | |
$fm->add_meta_box( 'Single-Level Group', 'fs_team' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment