Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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(
'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')
'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