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_candidate_account_job_register_form' ) ) { | |
| function front_child_candidate_account_job_register_form() { | |
| ?><form method="post" class="register" <?php do_action( 'front_job_register_form_tag' ); ?> > | |
| <?php do_action( 'front_job_register_form_start' ); ?> | |
| <?php if ( get_option( 'users_can_register' ) ) : ?> | |
| <div class="form-group"> | |
| <label class="form-label" for="reg_username"><?php esc_html_e( 'Username', 'front' ); ?> <span class="required">*</span></label> | |
| <input type="text" class="form-control input-text" name="username" id="reg_username" autocomplete="username" value="<?php echo ( ! empty( $_POST['username'] ) ) ? esc_attr( wp_unslash( $_POST['username'] ) ) : ''; ?>" /><?php // @codingStandardsIgnoreLine ?> |
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_employer_account_job_register_form' ) ) { | |
| function front_child_employer_account_job_register_form() { | |
| ob_start(); | |
| ?><form method="post" class="register" <?php do_action( 'front_job_register_form_tag' ); ?> > | |
| <?php do_action( 'front_job_register_form_start' ); ?> | |
| <?php if ( get_option( 'users_can_register' ) ) : ?> | |
| <div class="form-group"> | |
| <label class="form-label" for="reg_username"><?php esc_html_e( 'Username', 'front' ); ?> <span class="required">*</span></label> |
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_get_unregister_post_types' ) ) { | |
| function masvideos_child_get_unregister_post_types(){ | |
| // Hide the line prevent from remove that post type (currently movie & movies playlist are prevented from remove) | |
| $post_types = []; | |
| // $post_types[] = 'movie'; // Remove Movie Post Type | |
| // $post_types[] = 'movie_playlist'; // Remove Movie Playlist Post Type | |
| $post_types[] = 'tv_show'; // Remove TV Show Post Type | |
| $post_types[] = 'tv_show_playlist'; // Remove TV Show Playlist Post Type | |
| $post_types[] = 'episode'; // Remove Episode Post Type | |
| $post_types[] = 'video'; // Remove Video Post Type |
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
| function mas_wpjmc_custom_admin_menu_label( $args ) { | |
| $args['labels']['menu_name'] = 'Organization'; | |
| return $args; | |
| } | |
| add_filter( 'register_post_type_company', 'mas_wpjmc_custom_admin_menu_label', 20 ); |
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_display_terms_field' ) ) { | |
| function jh_child_display_terms_field() { | |
| $field = []; | |
| $field['name'] = 'terms'; | |
| $field['label'] = apply_filters( 'jh_child_wpjm_terms_field_label', __( 'Terms & Condition', 'jobhunt-child' ) ); | |
| $field['required'] = true; | |
| $field['type'] = 'checkbox'; | |
| $field['description'] = apply_filters( | |
| 'jh_child_wpjm_terms_field_description', | |
| wp_sprintf( __( 'I Accept <a href=%s target="_blank">Terms & Conditions</a>', 'jobhunt-child' ), '#' ) // Repace # with your terms page link |
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_modify_testimonial_block_excerpt_length' ) ) { | |
| function jh_child_modify_testimonial_block_excerpt_length( $length ) { | |
| $length = 30; // adjust 30 with yours. | |
| return $length; | |
| } | |
| } | |
| add_filter( 'jobhunt_testimonial_block_excerpt_length', 'jh_child_modify_testimonial_block_excerpt_length' ); |
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_single_job_listing_title' ) ) { | |
| function jh_child_single_job_listing_title() { | |
| ?><h3 class="job-listing-single-job__title"><?php wpjm_the_job_title(); ?></h3><?php | |
| } | |
| } | |
| add_action( 'single_job_listing', 'jh_child_single_job_listing_title', 5 ); |
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_companies_default_catalog_ordering_customized_args' ) ) { | |
| function mas_companies_default_catalog_ordering_customized_args( $orderby_value ) { | |
| return 'title'; // available options : title, title-desc, data, data-asc, menu_order, rand | |
| } | |
| } | |
| add_filter( 'mas_companies_default_catalog_orderby', 'mas_companies_default_catalog_ordering_customized_args', 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
| <?php | |
| /** | |
| * Message to display when a company has been submitted. | |
| * | |
| * This template can be overridden by copying it to yourtheme/wp-job-manager-company/company-submitted.php. | |
| * | |
| * @author Madras Themes | |
| * @package MAS Companies For WP Job Manager | |
| * @category Template | |
| * @version 1.0.0 |
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
| function cz_child_allow_seller_uploads_profile_pic() { | |
| if ( ! current_user_can('upload_files') && function_exists( 'is_wc_endpoint_url' ) && is_wc_endpoint_url( 'edit-account' ) ) { | |
| $seller = get_role('seller'); | |
| $seller->add_cap('upload_files'); | |
| } | |
| } | |
| function cz_child_filter_get_the_user_attachments( $query ) { | |
| $current_user = wp_get_current_user(); |