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
/* | |
* Disable CF7 Refill | |
*/ | |
function aa_disable_wpcf7_refill() { | |
global $wp_scripts; | |
$handle = 'contact-form-7'; | |
$object_name = 'wpcf7'; | |
$data = $wp_scripts->get_data( $handle, 'data' ); | |
if ( ! empty( $data ) ) { | |
if ( ! is_array( $data ) ) { |
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 | |
function load_scripts(){ | |
global $wp_scripts; | |
wp_register_script( 'theme-scripts', get_bloginfo('template_url').'/js/scripts.js', array('jquery'), '1.0', true ); | |
//if we're on the woocommerce checkout page | |
if( is_checkout() ){ | |
$wp_scripts->add_data('theme-scripts','data','<!--START SCRIPT STRING--> | |
// script to load before name-of-enqueued-script loads |
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 | |
/** | |
* Duplicate this file as many times as you would like, just be sure to change the | |
* Empty_Widget class name to a custom name of your choice. Have fun! redrokk.com | |
* | |
* Plugin Name: Empty Widget | |
* Description: Single Widget Class handles all of the widget responsibility, all that you need to do is create the html. Just use Find/Replace on the Contact_RedRokk_Widget keyword to rebrand this class for your needs. | |
* Author: RedRokk Interactive Media | |
* Version: 1.0.0 | |
* Author URI: http://www.redrokk.com |