08/02/2014 at 12:34 pm
#299412
Keymaster
@ David
Oh, yeah, I guess that would add the submit button there too, not good. This should do the trick:
function cn_slim_plus_add_submit_button( $atts, $results ) {
if ( $atts['enable_category_multi_select'] && ! get_query_var( 'cn-entry-slug' ) ) {
cnTemplatePart::submit( array( 'return' => FALSE ) );
}
}
add_action( 'cn_action_list_before-slim-plus', 'cn_slim_plus_add_submit_button', 99, 2 );
