Skip to content

Instantly share code, notes, and snippets.

@javistuff
Created March 16, 2018 01:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save javistuff/77c1700f0627640070f064796b190e4b to your computer and use it in GitHub Desktop.
Save javistuff/77c1700f0627640070f064796b190e4b to your computer and use it in GitHub Desktop.
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