Created
October 11, 2018 15:54
-
-
Save yousufansa/37764e1988f0a049213914184b634c2c to your computer and use it in GitHub Desktop.
Jobhunt - Enable Company Carousel Row Feature
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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