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 ( $ ) { | |
// Enter the listing_type of the links and the URL to replace with | |
// e.g. http://YOURDOMAIN.COM/add-listing/?listing_type=event&new=1 | |
// In the above link the listing_type = event | |
var newLinks = { | |
'event' : 'http://YOURCUSTOMLINK.COM/Event', | |
// 'buy' : 'http://YOURCUSTOMLINK.COM/BUY' // You can add other listing types as well | |
}, |
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
add_filter( 'manage_job_listing_posts_columns', 'set_custom_edit_job_listing_columns' ); | |
function set_custom_edit_job_listing_columns( $columns ) { | |
$columns['_case27_listing_type'] = esc_html__('Type', 'my-listing'); | |
return $columns; | |
} | |
add_action( 'manage_job_listing_posts_custom_column' , 'custom_job_listing_column', 10, 2 ); |
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 | |
$listing_id = ! empty( $_REQUEST[ 'job_id' ] ) ? absint( $_REQUEST[ 'job_id' ] ) : 0; | |
$latitude = $longitude = $lock_pin = false; | |
if ($listing_id) { | |
$latitude = get_post_meta($listing_id, 'geolocation_lat', true); | |
$longitude = get_post_meta($listing_id, 'geolocation_long', true); | |
$lock_pin = get_post_meta($listing_id, 'job_location__lock_pin', true); | |
// dump($latitude, $longitude, $lock_pin); | |
} |
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
<div class="<?php echo esc_attr( 'text-' . $data['align'] ) ?> <?php echo esc_attr( $data['tabs_mode'] == 'dark' ? 'featured-light' : $data['tabs_mode'] ) ?>"> | |
<div class="featured-search reveal <?php echo esc_attr( $data['layout'] ) ?>"> | |
<div class="fs-tabs"> | |
<?php $tab_group_id = uniqid(); ?> | |
<ul class="nav nav-tabs" role="tablist"> | |
<?php | |
$i = 0; | |
foreach ($listing_types as $type): $i++; ?> | |
<li role="presentation" class="<?php echo $i === 1 ? 'active' : '' ?>"> | |
<a href="#<?php echo esc_attr( "{$tab_group_id}--{$i}" ) ?>" role="tab" class="tab-switch"> |
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 | |
/** | |
* Package Selection Step. | |
* | |
* @since 1.0.0 | |
* | |
* @var array $packages Product list. Each item is CASE27\Integrations\Paid_Listings\Product object. | |
* @var int $packages_count Packages `$packages` count. | |
* @var array $user_packages User package list. Each item is CASE27\Integrations\Paid_Listings\Package object. | |
* @var mixed $type Listing Type object. false|CASE27\Integrations\ListingTypes\ListingType. |
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
global $post; | |
$listing_id = $post->ID; | |
// listing name | |
get_post_meta( $listing_id, '_job_title', true ); | |
// listing description | |
get_post_meta( $listing_id, '_job_description', true ); | |
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
add_filter( 'gettext', 'listing_expire_string_translation', 20, 3 ); | |
function listing_expire_string_translation( $translated_text, $original_text, $domain ) { | |
if ( 'Listing Expires' != $original_text || 'wp-job-manager' != $domain ) { | |
return $translated_text; | |
} | |
return 'your_custom_text'; // you may replace your string here 'your_custom_text'. | |
} |
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
add_filter( 'mylisting\listing\share\description', function( $description, $object ) { | |
$_yoast_job_description = get_post_meta( get_the_ID(), '_yoast_wpseo_metadesc', true ); | |
if ( ! empty( $_yoast_job_description ) ) { | |
$description = $_yoast_job_description; | |
} | |
return $description; |
OlderNewer