Skip to content

Instantly share code, notes, and snippets.

View yousufansa's full-sized avatar

Yusuf Ansari yousufansa

View GitHub Profile
@yousufansa
yousufansa / functions.php
Created December 3, 2018 05:57
Jobhunt - Jobs Header Search Custom Title
if ( ! function_exists( 'jh_child_job_header_search_block_title_custom_args' ) ) {
function jh_child_job_header_search_block_title_custom_args( $args ) {
$args['section_title'] = esc_html__( 'Your Title', 'jobhunt' );
return $args;
}
}
add_filter( 'jobhunt_job_header_search_block_args', 'jh_child_job_header_search_block_title_custom_args' );
@yousufansa
yousufansa / functions.php
Created December 5, 2018 06:19
Jobhunt - Remove Resumes Submit Form Fields ( Social Links, Video, Award & URL )
if ( ! function_exists( 'jh_child_custom_function' ) ) {
function jh_child_custom_function() {
add_filter('submit_resume_form_fields' , 'jh_child_custom_submit_resume_form_fields');
}
}
add_action( 'init', 'jh_child_custom_function' );
if ( ! function_exists( 'jh_child_custom_submit_resume_form_fields' ) ) {
function jh_child_custom_submit_resume_form_fields ($fields) {
unset ($fields['resume_fields']['candidate_twitter']);
@yousufansa
yousufansa / functions.php
Created December 5, 2018 07:27
Jobhunt - Change the label & placeholder of Job Type in Job Submit Form
if ( ! function_exists( 'jh_child_custom_function_init' ) ) {
function jh_child_custom_function_init() {
add_filter('submit_job_form_fields' , 'jobhunt_child_custom_submit_job_form_fields');
}
}
add_action( 'init', 'jh_child_custom_function_init' );
if ( ! function_exists( 'jobhunt_child_custom_submit_job_form_fields' ) ) {
function jobhunt_child_custom_submit_job_form_fields ($fields) {
$fields['job']['job_type']['label'] = esc_html__( 'News Paper', 'jobhunt' );
@yousufansa
yousufansa / functions.php
Last active December 6, 2018 12:07
Jobhunt - Add Secondary Image for Single Job
if ( ! function_exists( 'jh_child_custom_submit_job_form_fields_newspaper_image' ) ) {
function jh_child_custom_submit_job_form_fields_newspaper_image ($fields) {
$fields['job']['job_newspaper_image'] = array(
'label' => esc_html__( 'Newspaper Image', 'jobhunt' ),
'type' => 'file',
'placeholder' => 'Upload the newspaper image',
'priority' => 5,
'required' => false
);
return $fields;
@yousufansa
yousufansa / functions.php
Last active January 28, 2020 13:52
Jobhunt - Register Taxonomy And Display in Single Job Overview
// Function: Add new custom taxonomy ( here ex: job_listing_newspaper ) for job
if ( ! function_exists( 'jh_child_custom_job_listing_taxonomies_list_add' ) ) {
function jh_child_custom_job_listing_taxonomies_list_add ( $taxonomies_args ) {
$taxonomies_args['job_listing_newspaper'] = array(
'singular' => esc_html__( 'Newspaper', 'jobhunt-extensions' ),
'plural' => esc_html__( 'Newspapers', 'jobhunt-extensions' ),
'slug' => esc_html_x( 'newspaper', 'Newspapers - resave permalinks after changing this', 'jobhunt-extensions' ),
'enable' => true
);
@yousufansa
yousufansa / functions.php
Created December 7, 2018 06:22
Jobhunt - Register Form Add Terms and Condition Checkbox
if( ! function_exists( 'jh_child_registration_form_fields_after_terms_conditions' ) ) {
function jh_child_registration_form_fields_after_terms_conditions() {
?>
<p style="margin-bottom:1em;">
<label for="jobhunt_register_term_conditions">
<input name="jobhunt_term_conditions" id="jobhunt_register_term_conditions" required class="required" type="checkbox"/>
<span style="margin-left:5px;"><?php wp_kses_post( _e( 'I accept your <a href="#">Terms and Conditions</a>', 'jobhunt' ) ); ?></span>
</label>
</p>
<?php
@yousufansa
yousufansa / functions.php
Created December 10, 2018 06:11
Jobhunt - Job Submit Form Fields Label Change
if ( ! function_exists( 'jh_child_add_custom_job_form_fields_change_qualification' ) ) {
function jh_child_add_custom_job_form_fields_change_qualification( $fields ) {
if ( get_option('job_manager_enable_qualification') ) {
$fields['job']['job_listing_qualification']['label'] = esc_html__( 'Certification', 'jobhunt' );
$fields['job']['job_listing_qualification']['placeholder'] = 'Choose a certification…';
}
return $fields;
}
}
@yousufansa
yousufansa / functions.php
Last active July 31, 2019 05:32
Jobhunt - Register / Login Form Custom Tab Title
if ( ! function_exists( 'jh_child_custom_register_form_tab_title' ) ) {
/**
* Change Register Tab Title
*/
function jh_child_custom_register_form_tab_title( $title ) {
$title = esc_html__( 'Register', 'jobhunt-extensions' ); //Replace New Register Tab Title
return $title;
}
}
add_filter( 'jobhunt_register_form_tab_title', 'jh_child_custom_register_form_tab_title' );
@yousufansa
yousufansa / functions.php
Created December 14, 2018 15:43
Jobhunt - Submit Form Field Add Description And Change Order
if ( ! function_exists( 'jh_child_edit_custom_job_form_fields' ) ) {
function jh_child_edit_custom_job_form_fields( $fields ) {
$fields['job']['job_title']['description'] = 'Job Title Description';
$fields['job']['job_category']['description'] = 'Job Category Description';
$fields['job']['application']['description'] = 'Job Application Description';
$fields['job']['job_category']['priority'] = 3;
$fields['job']['job_type']['priority'] = 4;
return $fields;
@yousufansa
yousufansa / home-v1.json
Last active September 5, 2019 05:24
Uneno - Home v1 Elementor
{"version":"0.4","title":"home-v1-elementor","type":"page","content":[{"id":"59cad024","settings":[],"elements":[{"id":"1f1ebde1","settings":{"_column_size":100},"elements":[{"id":"469338b3","settings":{"slider_shortcode":"[rev_slider alias=\"slider-with-product-slider\"]","shortcode_tag":"products","product_id":"1250,1295","limit":"12","ca_slidestoshow":"1","ca_slidestoscroll":"1","ca_arrows":"","el_class":"mb-0"},"elements":[],"isInner":false,"widgetType":"uneno_slider_with_products_carousel","elType":"widget"}],"isInner":false,"elType":"column"}],"isInner":false,"elType":"section"},{"id":"9d2e572","settings":[],"elements":[{"id":"484deb2e","settings":{"_column_size":100},"elements":[{"id":"1200c1a8","settings":{"section_title":"Popular Products","section_subtitle":"Shoppers like you are looking at these Products. Let\u2019s take a look!","bg_image":{"id":1656,"url":"https:\/\/demo.madrasthemes.com\/uneno\/wp-content\/uploads\/sites\/22\/2018\/12\/product-bg-1.png"},"shortcode_tag":"products","product_id":"