Created
March 16, 2018 01:25
-
-
Save javistuff/77c1700f0627640070f064796b190e4b to your computer and use it in GitHub Desktop.
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
function at_my_new_module_box( $boxes ) { | |
$boxes['mod_crelly_type_metabox'] = array( | |
'id' => 'mod-crelly-qi-type-metabox', | |
'title' => esc_html__('Crelly Slider Options', 'quadro'), | |
'page' => 'quadro_mods', | |
'context' => 'normal', | |
'priority' => 'high', | |
'fields' => array( | |
array( | |
'name' => esc_html__('Slider Shortcode', 'quadro'), | |
'id' => $prefix . 'mod_crelly_shortcode', | |
'type' => 'text', | |
'desc' => esc_html__('Paste in this field the shortcode for the slider as you would normally paste on any page.', 'quadro') | |
), | |
array( | |
'name' => esc_html__('Slider Name', 'quadro'), | |
'id' => $prefix . 'mod_crelly_name', | |
'type' => 'text', | |
'desc' => esc_html__('This is an example of a different field.', 'quadro') | |
), | |
) | |
); | |
return $boxes; | |
} | |
add_filter( 'qi_filter_cfields_mods_definition', 'at_my_new_module_box' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment