Skip to content

Instantly share code, notes, and snippets.

@yousufansa
Created October 11, 2018 15:54
Show Gist options
  • Select an option

  • Save yousufansa/37764e1988f0a049213914184b634c2c to your computer and use it in GitHub Desktop.

Select an option

Save yousufansa/37764e1988f0a049213914184b634c2c to your computer and use it in GitHub Desktop.
Jobhunt - Enable Company Carousel Row Feature
if ( ! function_exists( 'jobhunt_child_kc_map_shortcode_params_company_info_carousel' ) ) {
function jobhunt_child_kc_map_shortcode_params_company_info_carousel( $shortcode_params ) {
$shortcode_params['jobhunt_company_info_carousel']['params'][] = array(
'name' => 'ca_rows',
'label' => esc_html__('Rows', 'jobhunt-extensions'),
'type' => 'text',
'description' => esc_html__('Enter the number of rows to display.', 'jobhunt-extensions'),
'value' => 1,
'admin_label' => true
);
return $shortcode_params;
}
}
add_filter( 'jobhunt_kc_map_shortcode_params', 'jobhunt_child_kc_map_shortcode_params_company_info_carousel' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment