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
/** | |
* Returns either true or false depending on whether the user has entered | |
* a shipping state or postal code. | |
* | |
* @param none | |
* | |
* @return bool | |
*/ | |
function initially_hide_usps_fallback_rate() { |
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_action( 'wp_print_scripts', 'rroots_print_enqueued_styles' ); | |
/** | |
* Function for printing all enqueued styles. This is useful if you want to dequeue styles enqueued by plugins. | |
* | |
* @usage Uncomment the add_action following this function | |
* @params none | |
*/ | |
function rroots_print_enqueued_styles() { |
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 | |
/** | |
* | |
* @wordpress-plugin | |
* Plugin Name: NextGen Gallery Script Optimizer | |
* Plugin URI: http://chooserethink.com | |
* Description: Removes NextGen Gallery scripts on pages that don't have a gallery on it. | |
* Version: 1.0.0 | |
* Author: Brianna Deleasa @ re:think | |
* Author URI: http://chooserethink.com |
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
add_action( 'wp_enqueue_scripts', 'themename_dequeue_sci_scripts', 999 ); | |
/** | |
* Remove the Simple Contact Info styles from our theme | |
* | |
* @param none | |
* @return none | |
*/ | |
function yorksonlegal_dequeue_sci_scripts() { | |
wp_dequeue_style( 'contact-info' ); |
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_action( 'wp_enqueue_scripts', 'themename_dequeue_wpsnw_styles', 9999 ); | |
/** | |
* Removes the WP Social Networks Widget plugin styles because we're styling | |
* the icons with our theme CSS. | |
* | |
* @param none | |
* @return none | |
* |
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 | |
/** | |
* Plugin Name: WP Rename Featured Image | |
* Plugin URI: http://www.briannadeleasa.com | |
* Version: 1.0.0 | |
* Author: Brianna Deleasa | |
* Description: Allows the user to rename the 'Set Featured Image' text and the 'Featured Image' metabox. | |
*/ |
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 | |
/** | |
* Figures out whether the given URL exists | |
* | |
* @param string | |
* @return bool | |
* | |
* @since 0.0.1 | |
*/ | |
function does_url_exist( $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
<?php | |
new Nextgen_Gallery_Customizations(); | |
/** | |
* Class Nextgen_Gallery_Customizations | |
* | |
* The class responsible for removing all of the default scripts and | |
* styles that Nextgen outputs and replacing the scripts with the | |
* necessary jQuery to activate the Foundation 5 Reveal modal. This |
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 | |
/** | |
* Counts the number of widgets in a widget area. | |
* | |
* @param $sidebar_index string The id of the widget area | |
* @return int | |
*/ | |
function get_widgets_count( $sidebar_index ) { | |
global $wp_registered_sidebars; |
OlderNewer