08/02/2014 at 8:22 am
#299397
Keymaster
@ David
That is because the action hook name is specific to cMap and will run only when using cMap. Here’s a tweaked version that should run with Slim Plus:
function cn_slim_plus_add_submit_button( $atts, $results ) {
if ( $atts['enable_category_multi_select'] ) {
cnTemplatePart::submit( array( 'return' => FALSE ) );
}
}
add_action( 'cn_action_list_before-slim-plus', 'cn_slim_plus_add_submit_button', 99, 2 );
Hope that helps!
