This file contains hidden or 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
'edit_columns' => array( | |
'title' => 'Demo', | |
'author' => 'Assigned to' | |
) | |
This file contains hidden or 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
'hide_post_row_actions' => array( | |
'trash', | |
'edit', | |
'quick-edit' | |
) | |
This file contains hidden or 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
'hide_screen_options' => true | |
This file contains hidden or 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' => 'Enter Custom Title' | |
This file contains hidden or 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
<?php | |
piklist('field', array( | |
'type' => 'my-checkbox', // custom field type | |
'field' => 'custom-checkbox', | |
'label' => 'Custom Select Field', | |
'choices' => array( | |
'first' => 'First Choice', | |
'second' => 'Second Choice', |
This file contains hidden or 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
<?php | |
piklist('field', array( | |
'type' => 'file', | |
'field' => 'upload_basic', | |
'label' => 'Add File(s)', | |
'description' => 'This is the basic upload field.', | |
'options' => array( | |
'basic' => true // set field to basic uploader |
This file contains hidden or 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
<?php | |
piklist('field', array( | |
'type' => 'file' | |
,'field' => 'upload_media' | |
,'label' => 'Add File(s)' | |
,'description' => 'This is the media uploader' | |
,'options' => array( | |
'modal_title' => 'Add File(s)' |
This file contains hidden or 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
<?php | |
$myupload = get_post($id); | |
$title = $myupload->post_title; | |
$description = $myupload->post_content; | |
$caption = $myupload->post_excerpt; | |
echo 'title:' . $title; | |
echo 'description:' . $description; |
This file contains hidden or 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
<?php | |
piklist('field', array( | |
'type' => 'select', | |
'field' => 'my_multiselect', | |
'label' => 'My Multiselect', | |
'choices' => array( | |
'first' => 'First Choice', | |
'second' => 'Second Choice', |
This file contains hidden or 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
<?php | |
piklist('field', array( | |
'type' => 'select', | |
'field' => 'my_select', | |
'label' => 'My select', | |
'choices' => array( | |
'first' => 'First Choice', | |
'second' => 'Second Choice', |