This file contains 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 | |
/** | |
* Remove Types Filter Fields | |
* | |
* @link https://gist.github.com/turtlepod/94a6dcf29a6405ca55977ea24b00422f | |
*/ | |
add_action( 'init', function() { | |
// Remove the label. | |
remove_action( 'job_manager_job_filters_end', array( 'Listify_WP_Job_Manager_Template_Filters', 'job_types_label' ), 9 ); |
This file contains 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 | |
/** | |
* Auto Populate Location Field | |
* | |
* @link https://www.facebook.com/groups/1035604846471813/permalink/1656529524379339/ | |
*/ | |
function listify_custom_autolocation() { | |
if ( ! ( is_front_page() || listify_is_job_manager_archive() ) ) { |
This file contains 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
Hi Admin, | |
New claim submitted, here's the details. | |
Listing URL: %listing_url% | |
Claimed by: %claimer_name% | |
Claim Status: %claim_status% | |
Edit Claim: %claim_edit_url% | |
Thank you. |
This file contains 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 | |
/** | |
* Use 3 Column Listing in Widgetize Page Template | |
*/ | |
add_action( 'template_redirect', function() { | |
if ( is_page_template( 'page-templates/template-widgetized.php' ) ) { | |
add_filter( 'listify_get_card_listing_class_columns', function( $col ) { | |
return 'col-xs-12 col-md-6 col-lg-4'; | |
}); |
This file contains 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 | |
/** | |
* Disable Listify v.2.3.0 PopUp for WooCommerce My Account Page. | |
*/ | |
add_action( 'init', function() { | |
remove_filter( 'listify_js_settings', array( $GLOBALS['listify_woocommerce'], 'add_myaccount_login_popup_trigger' ) ); | |
} ); | |
/** |
This file contains 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 | |
/** | |
* Remove Rating Display if No Rating Exists Yet | |
* | |
* @link https://secure.helpscout.net/conversation/425117562/121662/ | |
*/ | |
add_action( 'init', function() { | |
// Remove Rating in Card if Empty. |
This file contains 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 | |
/** | |
* Google API tester. | |
*/ | |
function my_gmaps_key_test( $key ) { | |
$url = add_query_arg( $args = array( | |
'address' => 'Genbu Media', | |
), 'https://maps.googleapis.com/maps/api/geocode/json' ); |
This file contains 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 | |
/** | |
* Plugin Name: Listify - Custom Single Listing Hero Button | |
*/ | |
function custom_listify_single_job_listing_actions_after() { | |
global $post; | |
// Get URL. | |
$url = get_post_meta( $post->ID, 'your_custom_meta_key', true ); |
This file contains 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 | |
// Remove Category: | |
remove_action( 'single_job_listing_meta_start', 'listify_the_listing_category', 30 ); | |
// Use Custom Category: | |
add_action( 'single_job_listing_meta_start', function() { | |
$cats = get_the_term_list( | |
get_post()->ID, | |
'job_listing_category', | |
'<span>', |
This file contains 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 | |
// Change the data of a listing to add logo. | |
add_filter( 'listify_get_listing_to_array', function( $data, $listing ) { | |
$data['myLogoURL'] = esc_url( $listing->get_company_logo() ); | |
return $data; | |
}, 10, 2 ); | |