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( 'jh_child_submit_job_form_change_multiselect_field_to_select_field' ) ) { | |
| function jh_child_submit_job_form_change_multiselect_field_to_select_field( $fields ) { | |
| if( isset( $fields['job']['job_category'] ) ) { | |
| $fields['job']['job_category']['type'] = 'term-select'; | |
| $fields['job']['job_category']['default'] = ''; | |
| } | |
| if( isset( $fields['job']['job_listing_salary'] ) ) { | |
| $fields['job']['job_listing_salary']['type'] = 'term-select'; | |
| $fields['job']['job_listing_salary']['default'] = ''; |
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_submit_form_fields_remove_user_data' ) ) { | |
| function mas_wpjmc_submit_form_fields_remove_user_data( $group_fields ) { | |
| foreach ( $group_fields as $group_key => $fields ) { | |
| foreach ( $fields as $key => $field ) { | |
| switch ( $key ) { | |
| case 'company_name' : | |
| $group_fields[ $group_key ][ $key ]['value'] = ''; | |
| break; | |
| case 'company_email' : | |
| $group_fields[ $group_key ][ $key ]['value'] = ''; |
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( 'masvideos_child_unregister_person_post_types' ) ) { | |
| function masvideos_child_unregister_person_post_types(){ | |
| unregister_post_type( 'person' ); | |
| } | |
| } | |
| add_action( 'init','masvideos_child_unregister_person_post_types' ); | |
| if ( ! function_exists( 'masvideos_child_remove_cast_crew' ) ) { | |
| function masvideos_child_remove_cast_crew( $tabs ) { | |
| unset( $tabs['cast'] ); |
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_fields_remove_admin_fields' ) ) { | |
| function mas_wpjmc_fields_remove_admin_fields( $fields ) { | |
| unset( $fields['_company_tagline'] ); | |
| // unset( $fields['_company_since'] ); // You can unset other fields also like this | |
| return $fields; | |
| } | |
| } | |
| add_filter( 'company_manager_company_fields', 'mas_wpjmc_fields_remove_admin_fields', 10 ); |
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( 'front_child_login_form_url' ) ) { | |
| function front_child_login_form_url( $login_page_url ) { | |
| if( function_exists( 'front_is_woocommerce_activated' ) && front_is_woocommerce_activated() && get_option('woocommerce_myaccount_page_id') ) { | |
| $login_page_url = get_permalink( get_option('woocommerce_myaccount_page_id') ); | |
| } | |
| return $login_page_url; | |
| } | |
| } | |
| add_filter( 'submit_job_form_login_url', 'front_child_login_form_url' ); |
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( 'ec_child_add_wishlist' ) ) { | |
| function ec_child_add_wishlist( $links ) { | |
| $links['wishlist'] = array( | |
| 'priority' => 40, | |
| 'callback' => 'ec_child_wishlist_header_link' | |
| ); | |
| return $links; | |
| } | |
| } | |
| add_filter( 'electro_handheld_header_links', 'ec_child_add_wishlist', 10 ); |
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( 'masvideos_enqueue_scripts_increase_shortcodeAtts_max_limit' ) ) { | |
| function masvideos_enqueue_scripts_increase_shortcodeAtts_max_limit() { | |
| $custom_script = ' | |
| var addFilter = wp.hooks.addFilter; | |
| addFilter("masvideos.component.shortcodeAtts.limit.max", "masvideos-modify/component-shortcodeAtts-limit-max", masvideosIncreaseShortcodeAttsMaxLimit); | |
| function masvideosIncreaseShortcodeAttsMaxLimit(limit) { | |
| return 50; | |
| }'; |
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( 'vodi_child_include_persons_as_search_result_tab' ) ) { | |
| function vodi_child_include_persons_as_search_result_tab( $post_types ) { | |
| $post_types[] = 'person'; | |
| return $post_types; | |
| } | |
| } | |
| add_filter( 'vodi_display_search_result_page_tab_post_types', 'vodi_child_include_persons_as_search_result_tab' ); |
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( 'front_portfolio_image_gallery' ) ) { | |
| function front_portfolio_image_gallery( $view = '' ) { | |
| global $post; | |
| $portfolio_image_gallery = explode( ',', get_post_meta( $post->ID, '_portfolio_image_gallery', true ) ); | |
| $attachments = array_filter( $portfolio_image_gallery ); | |
| if ( empty( $attachments ) ) { | |
| $post_thumbnail_id = get_post_thumbnail_id( $post->ID ); | |
| array_unshift( $attachments, $post_thumbnail_id ); |
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
| // Modify Jobhunt Company Fields | |
| if ( ! function_exists( 'jh_child_customize_jobhunt_job_form_company_fields_required_priority' ) ) { | |
| function jh_child_customize_jobhunt_job_form_company_fields_required_priority( $fields ) { | |
| if( isset( $fields['company_description'] ) ) { | |
| $fields['company_description']['required'] = true; | |
| $fields['company_description']['priority'] = 4; | |
| } | |
| if( isset( $fields['company_facebook'] ) ) { | |
| $fields['company_facebook']['required'] = true; |