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 | |
/** Do NOT include the opening php tag */ | |
add_action( 'init', 'ddw_add_shortcodes_for_text_widget', 1 ); | |
/** | |
* Enable Shortcodes for Text Widgets. | |
* | |
* @author David Decker - DECKERWEB |
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 | |
/** Do NOT include the opening php tag */ | |
/** | |
* Plugin: Cleaner Plugin Installer - activate Slim Mode. | |
*/ | |
if ( ! defined( 'CPI_SLIM_MODE' ) ) { | |
define( 'CPI_SLIM_MODE', TRUE ); | |
} |
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 | |
/* | |
* @goliver79 | |
* woocommerce hide empty categories in woocommerce widget "product categories" | |
*/ | |
function woo_hide_product_categories_widget( $list_args ){ | |
$list_args[ 'hide_empty' ] = 1; | |
return $list_args; | |
} |
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 | |
/* | |
* Add custom query vars to handle Google Analytics Ecommerce tracking. | |
* This should be placed in a plugin or in functions.php of the theme. | |
* | |
* You'll want to use the redirect method for Gravity Forms confirmations and | |
* turn on passing field data via a query string. An example we used was: | |
* donation_amount={Donation Amount:13}&donation_id={entry_id}&donation_recurring=0 | |
*/ | |
function sm_add_query_vars( $vars ){ |
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 | |
add_filter( 'dlm_page_addon_search_query_args', 'ddw_dlm_search_args' ); | |
/** | |
* Plugin: Download Monitor | |
* Tweak Downloads search args | |
*/ | |
function ddw_dlm_search_args( $args ) { | |
$args[ 'tax_query' ] = array( |
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 | |
/** | |
* Main plugin file. This plugin for Genesis Theme Framework allows modifying of default layouts for | |
* homepage, singular, archive, attachment, search, 404 and even bbPress 2.x pages via Genesis theme settings. | |
* | |
* @package GenesisLayoutExtras | |
* @author David Decker | |
* @origin Based on the work of @WPChildThemes for original plugin called "Genesis Layout Manager" (C) 2010 | |
* | |
* Plugin Name: Genesis Layout Extras |
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 | |
add_filter( 'wpspn_next_post_link', 'custom_wpspn_next_link' ); | |
/** | |
* WP Single Post Navigation: Add custom filters for "next post link" | |
*/ | |
function custom_wpspn_next_link() { | |
$args = array ( | |
'format' => '%link', // Change link format |
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 | |
add_filter( 'wpspn_previous_post_link', 'custom_wpspn_previous_link' ); | |
/** | |
* WP Single Post Navigation: Add custom filters for "previous post link" | |
*/ | |
function custom_wpspn_previous_link() { | |
$args = array ( | |
'format' => '%link', // Change link format |
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 | |
add_filter( 'gspn_previous_post_link', 'custom_gspn_previous_link' ); | |
/** | |
* Genesis Single Post Navigation: Add custom filters for "previous post link" | |
*/ | |
function custom_gspn_previous_link() { | |
$args = array ( | |
'format' => '%link', // Change link format (default: %link) |
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 | |
add_filter( 'gspn_next_post_link', 'custom_gspn_next_link' ); | |
/** | |
* Genesis Single Post Navigation: Add custom filters for "next post link" | |
*/ | |
function custom_gspn_next_link() { | |
$args = array ( | |
'format' => '%link', // Change link format (default: %link) |