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 filter_document_title( $title ) { | |
if ( is_home() && ! is_archive() ) { | |
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
$title = 'TorrentFreak News - Page ' . $paged; | |
} | |
return $title; | |
} | |
add_filter( 'pre_get_document_title', __NAMESPACE__ . '\\filter_document_title', 30 ); | |
function tf_yoast_seo_robots_remove_archives( $robots ) { |
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
if ( !$this->startsWithZeros( $value ) ) { | |
if ( is_numeric( $value ) && ( floor( $value ) == $value ) && $value >= 0 && $value <= 4294967295 ) { | |
return MySQL::C_DATATYPE_UINT32; | |
} | |
if ( is_numeric( $value ) ) { | |
return MySQL::C_DATATYPE_DOUBLE; | |
} | |
} |
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
#!/bin/bash | |
FUNCTIONS=" | |
woocommerce_email_order_schema_markup, | |
add_to_cart_fragments, | |
add_to_cart_redirect, | |
woocommerce_product_width, | |
woocommerce_product_height, | |
woocommerce_product_length, | |
woocommerce_product_weight, |
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 | |
/* | |
Plugin Name: RCP Address Fields Filters | |
Plugin URI: http://www.vanpattenmedia.com/ | |
Description: Override filters in RCP Address Fields | |
Version: 0.0.1 | |
Author: Van Patten Media Inc. | |
Author URI: https://www.vanpattenmedia.com/ | |
Contributors: chrisvanpatten, mcfarlan | |
*/ |