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 | |
function prefix_no_direct_access() { | |
// Define Page URL for redirect. | |
$careers = get_permalink( get_page_by_title( 'Careers' ) ); | |
// If this is not the Apply Now page, do nothing. | |
if( ! is_page( 'Apply Now' ) ) { | |
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
<?php | |
/** | |
* Unregister WooCommerce Store Notice from 'wp_footer' action | |
*/ | |
remove_action( 'wp_footer', 'woocommerce_demo_store' ); | |
/** | |
* Register WooCommerce Store Notice to 'wp_body_open' action | |
*/ | |
add_action( 'wp_body_open', 'woocommerce_demo_store' ); |
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 | |
//Customizes the 'from' text span. | |
add_filter( 'woocommerce_get_price_html_from_text', function( $html ) { | |
$from_HTML = str_replace( | |
_x( 'From:', 'min_price', 'textdomain' ) . ' </span>', | |
_x( 'from', 'min_price', 'textdomain' ) . ' </span>', | |
$html | |
); | |
return $from_HTML; | |
}, 1 ); |
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 | |
/** | |
* Generates social sharing icons and links for posts and products. | |
* | |
* For best results, make sure your site already includes OpenGraph support. | |
* @link https://ogp.me/ | |
*/ | |
function textdomain_social_sharing() { | |
//Set up the sharing links. We're keeping it basic - Facebook, Twitter, and Pinterest. |