add_filter( ‘gform_default_styles’, function( $styles ) { return ‘{“theme”:””,”inputSize”:”lg”,”inputBorderColor”:”#686e77″,”inputBackgroundColor”:”#fff”,”inputColor”:”#112337″,”inputPrimaryColor”:”var(–e-global-color-el_color_1)”,”labelColor”:”#112337″,”descriptionColor”:”#585e6a”,”buttonPrimaryBackgroundColor”:”var(–e-global-color-el_color_1)”,”buttonPrimaryColor”:”#fff”}’; } );Continue reading
function sumobi_edd_show_terms_agreement() { global $edd_options; /*print_r($edd_options);*/ if ( isset( $edd_options[‘show_agree_to_terms’] ) ) { ?> <?php } } remove_action( 'edd_purchase_form_before_submit', 'edd_terms_agreement' ); add_action( 'edd_purchase_form_before_submit', 'sumobi_edd_show_terms_agreement' );Continue reading
add_action( ‘admin_init’, function() { if ( ! current_user_can( ‘administrator’ ) ) { wp_redirect( home_url() ); exit; } } );Continue reading
function spammersdeletion() { global $wpdb; $from = strtotime(‘-30 day’, time()); $wpdb->query(‘DELETE FROM wp_users WHERE DATE(user_registered) < "'.date('Y-m-d', $from).'"AND user_status = "2"'); } add_action('init','spammersdeletion');Continue reading
add_action(‘wp_footer’, ‘fitboots_hide_other_shipping_methods_when_free’); function fitboots_hide_other_shipping_methods_when_free() { if (is_checkout()) { ?>Continue reading