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
/* | |
Here we're filtering the site_url() and get_site_url() functions which are called dozens and dozens of times during a request. | |
In this case we only want to modify $url if the filter was called from a particular PHP class (rtCamp\WP\Nginx\Helper) | |
*/ | |
add_filter( 'site_url', function( $url = '' ) { | |
$backtrace = wp_debug_backtrace_summary(); | |
if ( stripos( $backtrace, 'rtCamp\WP\Nginx\Helper' ) ) { | |
$url = str_replace( 'https://', 'http://', $url ); | |
} | |
return $url; |
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
function add_information_to_listing_footer() { | |
global $post; | |
echo '<h2>hello!</h2>'; | |
} | |
add_action( 'listify_content_job_listing_footer', 'add_information_to_listing_footer', 25 ); |
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 | |
/** | |
* The template for displaying the call to action | |
*/ | |
$title = listify_theme_mod( 'as-seen-on-title' ); | |
$logos = listify_theme_mod( 'as-seen-on-logos' ); | |
if ( '' == $logos ) { | |
return; | |
} | |
?> |
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
function custom_menu_item_name () { | |
$current_user = wp_get_current_user(); | |
return $current_user->user_login; | |
} | |
add_filter( 'listify_acount_menu_user_label', custom_menu_item_name, 99 ); |
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 | |
/** | |
* Customized version of the template for displaying Job Listings which includes the term descriptions | |
* | |
* Also used for all job listing taxonomy archives. | |
* | |
* Learn more: http://codex.wordpress.org/Template_Hierarchy | |
* | |
* @package Listify | |
*/ |
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
function custom_default_listify_cover_image( $image, $args ) { | |
global $post; | |
if ( $post->post_type == 'job_listing' ) { | |
return ""; //You can add URL to a default image here or leave it blank if you do not want a background for listings | |
} | |
} | |
add_filter( 'listify_cover_image', 'custom_default_listify_cover_image', 10, 2 ); |
OlderNewer