View tba_register_post_type_args.php
add_filer( 'tba_register_post_type_args', 'my_tba_register_post_type_args' ); | |
function my_tba_register_post_type_args( $args ) { | |
$args['exclude_from_search'] = true; | |
return $args; | |
} |
View aihrus_add_to_cart_item.php
<?php | |
add_filter( 'edd_add_to_cart_item', 'aihrus_add_to_cart_item' ); | |
function aihrus_add_to_cart_item( $item ) { | |
if ( empty( $_GET['edd_license_key'] ) ) { | |
return $item; | |
} else { | |
$license = ! empty( $_GET['edd_license_key'] ) ? sanitize_text_field( $_GET['edd_license_key'] ) : false; | |
if ( ! $license ) { | |
return $item; | |
} |
View cbqe-pilotpress.php
<?php | |
/** | |
* Pilot Press integration for Custom Bulk/Quick Edit plugin | |
* | |
* @author Michael Cannon <mc@aihr.us> | |
*/ | |
add_filter( 'manage_post_posts_columns', 'rgp_manage_post_posts_columns' ); | |
add_filter( 'manage_guitarlessons_posts_columns', 'rgp_manage_post_posts_columns' ); |
View cbqe-restrict-content-pro.php
<?php | |
/** | |
* Restrict Content Pro for Custom Bulk/Quick Edit plugin | |
* | |
* In WordPress Admin > Settings > Custom Bulk/Quick, configure your fields as needed, per below. If configuration updates are needed, either manually edit them or remove the current field configuration and click Save Changes for automatic updates. | |
* | |
* Paid Only? - As checkbox | |
* Show Excerpt? - As checkbox | |
* Hide from Feed? - As checkbox | |
* Access Level - As RCP Access Level |
View class-redrokk-metabox-class.php
<?php | |
/** | |
* @Author Anonymous | |
* @link http://www.redrokk.com | |
* @Package Wordpress | |
* @SubPackage RedRokk Library | |
* | |
* @version 2.0 | |
*/ |
View gist:3028827
Index: plugin/class-facet-taxonomy.php | |
=================================================================== | |
--- plugin/class-facet-taxonomy.php (revision 566010) | |
+++ plugin/class-facet-taxonomy.php (working copy) | |
@@ -89,7 +89,7 @@ | |
$cache_key = md5( serialize( $matching_post_ids )); | |
- if( ! $this->facets->_matching_tax_facets = wp_cache_get( $cache_key , 'scrib-facet-taxonomy' )) | |
+ if( ! empty( $matching_post_ids ) && ! $this->facets->_matching_tax_facets = wp_cache_get( $cache_key , 'scrib-facet-taxonomy' )) |
View gist:3090584
$recTitle = $record['title']; | |
$encoding = mb_detect_encoding( $recTitle, 'UTF-8', true ); | |
if ( empty( $encoding ) ) { | |
$recTitle = mb_convert_encoding( $recTitle, 'UTF-8' ); | |
} |
View realurl.php
<?php | |
$TYPO3_CONF_VARS['FE']['addRootLineFields'] .= ',tx_realurl_pathsegment,tx_realurl_exclude,tx_realurl_pathoverride,alias,nav_title,title'; | |
// @ref http://www.slideshare.net/jweiland/why-realurl-sucks-and-how-to-fix-it | |
$realurlConfig = array( | |
'init' => array( | |
'adminJumpToBackend' => true, | |
'appendMissingSlash' => 'ifNotFile,redirect[301]', | |
'emptyUrlReturnValue' => '/', |
OlderNewer