Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function at_define_new_module_type( $types ) {
$types['your_module_slug'] = array(
'name' => esc_html__( 'Your New Module Title', 'quadro' ),
'slug' => 'your_module_slug',
'img' => 'your_module_slug', // this serves as name for the .png module icon
'img_path' => get_stylesheet_directory_uri() . '/path-inside-child-theme/'
'desc' => esc_html__( 'Module type description for hover card', 'quadro' ),
);
return $types;
}
add_filter( 'qi_filter_available_modules', 'at_define_new_module_type' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.