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
| /** | |
| * Optimize WooCommerce Scripts | |
| * Remove WooCommerce Generator tag, styles, and scripts from non WooCommerce pages. | |
| */ | |
| add_action( 'wp_enqueue_scripts', 'child_manage_woocommerce_styles', 99 ); | |
| function child_manage_woocommerce_styles() { | |
| //remove generator meta tag | |
| remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) ); |
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
| /* ------------------------------------ | |
| Gravity Forms | |
| ---------------------------------------*/ | |
| .gform_wrapper ul { padding-left: 0; list-style: none } | |
| .gform_wrapper li { margin-bottom: 15px } | |
| .gform_wrapper form { margin-bottom: 0 } |
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
| /** | |
| * Remove Rev Slider Metabox | |
| */ | |
| if ( is_admin() ) { | |
| function remove_revolution_slider_meta_boxes() { | |
| remove_meta_box( 'mymetabox_revslider_0', 'page', 'normal' ); | |
| remove_meta_box( 'mymetabox_revslider_0', 'post', 'normal' ); | |
| remove_meta_box( 'mymetabox_revslider_0', 'YOUR_CUSTOM_POST_TYPE', 'normal' ); | |
| } |
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 my_custom_give_import_donation_fields( $options ) { | |
| // Add 'Donor Age' field | |
| $options['_give_fee_amount'] = [ | |
| __( 'Recovered Fee', 'give' ), | |
| __( 'Fee Recovery', 'give' ), | |
| __( 'Fee Recovered', 'give' ), | |
| __( 'Fee Covered', 'give' ), | |
| ]; |
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
| #Example moving the DPSG Global Library | |
| # 1 Checkout the Beanstalk Repo | |
| git clone --bare git@codeandtheory.beanstalkapp.com:/dpsg-global-library.git | |
| # 2 Push into your desired GitHub repo. (Please note that you must create the github repo prior to this step) | |
| git push --mirror git@github.com:codeandtheory/dpsg-global-library.git |
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 | |
| /* | |
| * Loop through Categories and Display Posts within | |
| */ | |
| $post_type = 'features'; | |
| // Get all the taxonomies for this post type | |
| $taxonomies = get_object_taxonomies( array( 'post_type' => $post_type ) ); | |
| foreach( $taxonomies as $taxonomy ) : |
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
| define('WP_DEBUG', true); | |
| define('SCRIPT_DEBUG',true); | |
| if ( WP_DEBUG ) { | |
| // Enable Debug logging to the /wp-content/debug.log file | |
| define( 'WP_DEBUG_LOG', true ); | |
| define( 'WP_DEBUG_DISPLAY', true ); | |
| @ini_set( 'log_errors', 'On' ); | |
| @ini_set( 'display_errors', 'Off' ); | |
| @ini_set( 'error_reporting', E_ALL ); | |
| @ini_set( 'error_log', 'php_error.log' ); |
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
| /** | |
| * Replace Quotes in Gravity Forms Email Headers | |
| * | |
| * For some odd reason Gravity Forms includes quotes in the "From" sender name. This is inconsistent with other mail senders so this removes the quotes. | |
| * | |
| * @param $email | |
| * @param $message_format | |
| * @param $notification | |
| * | |
| * @return mixed |
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 | |
| /** | |
| * The template for displaying product content within loops. | |
| * | |
| * Override this template by copying it to yourtheme/woocommerce/content-product.php | |
| * | |
| * @author WooThemes | |
| * @package WooCommerce/Templates | |
| * @version 1.6.4 | |
| */ |
NewerOlder

