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
sprintf("<pre>%s</pre>",print_r($value)); |
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
#!/bin/bash | |
# | |
# svn2git.sh copies your plugin from WordPress svn repository to a local git repository and to GitHub. | |
# The GiHub repository will be created, using the GitHub API, if it doens't exist. | |
# | |
# You need to change the GITHUB_USERNAME and AUTHORS_FILE variables and create a authors file. The | |
# authors file is used to match your svn user with your GitHub user. | |
# | |
# .. and, copying from svn takes time :/ |
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
piklist( 'field', array( | |
'type' => 'group' | |
, 'field' => 'demo_address' | |
, 'label' => __( 'Address' ) | |
, 'description' => __( '' ) | |
, 'fields' => array( | |
) | |
) | |
); |
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
/* | |
Title: My Settings Section | |
Setting: piklist-examples | |
Tab: Advanced | |
Order: 20 | |
*/ |
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
piklist( 'field', array( | |
'type' => 'text' | |
, 'scope' => 'post_meta' // Not used for settings sections | |
, 'field' => 'field_name' | |
, 'label' => 'Example Field' | |
, 'description' => 'Field Description' | |
, 'attributes' => array( | |
'class' => 'text' | |
) | |
) ); |
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
piklist( 'field', array( | |
'type' => 'timepicker' | |
, 'field' => 'time' | |
, 'label' => 'Time' | |
, 'description' => 'Choose a time' | |
, 'options' => array( | |
'startTime' => date( 'H:m A' ) | |
, 'show24Hours' => false | |
, 'separator' => ':' | |
, 'step' => 15 |
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
piklist( 'field', array( | |
'type' => 'select' | |
, 'scope' => 'post_meta' // Not used for settings sections | |
, 'field' => 'field_name' | |
, 'value' => 'option2' // Sets default to Option 2 | |
, 'label' => 'Example Field' | |
, 'description' => 'Field Description' | |
, 'attributes' => array( | |
'class' => 'text' | |
) |
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
piklist( 'field', array( | |
'type' => 'radio' | |
, 'scope' => 'post_meta' // Not used for settings sections | |
, 'field' => 'field_name' | |
, 'value' => 'option2' // Sets default to Option 2 | |
, 'label' => 'Example Field' | |
, 'description' => 'Field Description' | |
, 'attributes' => array( | |
'class' => 'text' | |
) |
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
piklist( 'field', array( | |
'type' => 'textarea' | |
, 'scope' => 'post_meta' // Not used for settings sections | |
, 'field' => 'field_name' | |
, 'label' => 'Example Field' | |
, 'description' => 'Field Description' | |
, 'attributes' => array( | |
'class' => 'text' | |
) | |
) ); |
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
piklist( 'field', array( | |
'type' => 'datepicker' | |
, 'scope' => 'post_meta' // Not used for settings sections | |
, 'field' => 'field_name' | |
, 'label' => 'Example Field' | |
, 'description' => 'Click in box' | |
, 'attributes' => array( | |
'class' => 'text' | |
) | |
, 'options' => array( |
NewerOlder