Created
October 1, 2020 12:09
-
-
Save yousufansa/75b7d438a1657665a2f1542b62d414c3 to your computer and use it in GitHub Desktop.
MAS WPJMC - Enable Select2 Scripts & Styles in Company Dashboard & Submit Form
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( 'mas_wpjmc_enhanced_select_enabled' ) ) { | |
| function mas_wpjmc_enhanced_select_enabled( $enabled ) { | |
| if ( has_wpjm_shortcode( null, [ 'mas_submit_company_form', 'mas_company_dashboard' ] ) ) { | |
| $enabled = true; | |
| } | |
| return $enabled; | |
| } | |
| } | |
| add_filter( 'job_manager_enhanced_select_enabled' , 'mas_wpjmc_enhanced_select_enabled' ); | |
| if ( ! function_exists( 'mas_wpjmc_job_manager_shortcodes' ) ) { | |
| function mas_wpjmc_job_manager_shortcodes( $shortcodes ) { | |
| $shortcodes = array_unique( array_merge( $shortcodes, [ 'mas_submit_company_form', 'mas_company_dashboard' ] ) ); | |
| return $shortcodes; | |
| } | |
| } | |
| add_filter( 'job_manager_shortcodes' , 'mas_wpjmc_job_manager_shortcodes' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment