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 | |
function wpmark_add_profile_field( $fields ) { | |
$fields[] = array( | |
'id' => 'test_meta', | |
'label' => 'Test Meta', | |
'desc' => 'Describe your field here.', | |
'type' => 'select', | |
'options' => array( | |
array( 'value' => 'value1', 'name' => 'Name 1' ), |
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 | |
function wpmark_add_tab( $tabs ) { | |
/* add our tab to the tabs array */ | |
$tabs[] = array( | |
'id' => 'wpmark_tab', | |
'label' => 'Testing', | |
'tab_class' => 'testing-tab', | |
'content_class' => 'testing-content', | |
); |
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 wpfep_show_profile(); ?> |
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 | |
/* assuming your post type was named cpt_content */ | |
$option = get_option( ‘wpptm_meta’ ); | |
$option = $option[ ‘cpt_content_selectbox’ ]; | |
echo $option; |
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 | |
$description = get_option( ‘wpptm_meta’ ); | |
$description = $description[ ‘post_type_name_description’ ]; | |
echo wpautop( $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 | |
function wpptm_add_select_input( $settings ) { | |
/* add our setting to the settings array */ | |
$settings[] = array( | |
'type'=> 'select', | |
'label'=> 'A Select Box', | |
'id'=> ‘selectbox’, | |
'options' = array( | |
array( |