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
/** | |
* AutoComplete Virtual Orders | |
*/ | |
function autocomplete_virtual_orders_in_woocommerce( $order_id ) { | |
// if there is no order id, then stop | |
if ( ! $order_id ) { | |
return; | |
} |
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
a.cl-effect-2{ | |
-webkit-perspective:1000px; | |
-moz-perspective:1000px; | |
perspective:1000px; | |
color:#fff; | |
} | |
a.cl-effect-2 span{ | |
position:relative; | |
display:inline-block;padding:0 14px; |
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 ap_user_can_read_comments( $_post = null, $user_id = false ) { | |
$_post = ap_get_post( $_post ); | |
// Get current user if no user_id supplied | |
if ( false === $user_id ) { | |
$user_id = get_current_user_id(); | |
} | |
// All support admins get the green light | |
if ( is_super_admin( $user_id ) ) { |
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 -> MINIFY HTML OUTPUT | |
//============================================================================================= | |
class WP_HTML_Compression { | |
protected $compress_css = true; | |
protected $compress_js = true; | |
protected $info_comment = true; |
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
/** | |
* Autocomplete orders with only virtual products. | |
* From the 2nd edition of Building Web Apps with WordPress | |
* https://bwawwp.org | |
*/ | |
function autocomplete_virtual_orders($order_id) { | |
//get the existing order | |
$order = new WC_Order($order_id); | |
//assume we will autocomplete |
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
// Additional Code from Brad. // | |
// Provides the ability to sort Component Option Filters by custom priority numbers. // | |
// Added to Child X Theme functions.php file // | |
add_action( 'woocommerce_composite_component_admin_config_filter_options', 'wc_cp_admin_filter_priorities', 10, 3 ); | |
add_filter( 'woocommerce_composite_process_component_data', 'wc_cp_admin_process_filter_priorities', 10, 4 ); | |
add_filter( 'woocommerce_composite_component_filters', 'wc_cp_sort_filters', 10, 3 ); | |
function wc_cp_admin_filter_priorities( $id, $data, $product_id ) { | |
$filters_priority = isset( $data[ 'filters_priority' ] ) ? $data[ 'filters_priority' ] : ''; | |
?> |
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
Redirect 301 https://saveonmagazines.com/this-is-your-old-url https://saveonmagazines.com/this-is-the-NEW-url |
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 gdpr_uwphelp( $translated_text, $text, $domain ) { | |
switch ( $translated_text ) { | |
case 'Save my name, email, and website in this browser for the next time I comment.' : | |
$translated_text = __( 'UltimateWPHelp can change the default text' ); | |
break; | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'gdpr_uwphelp', 20, 3 ); |
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
Subscription Notes: | |
04-20-2018 @ 10:13:18 - scheduled action 52816 (subscription payment) failed to finish processing after 300 seconds | |
04-20-2018 @ 10:13:18 - action args: subscription_id: 52814 | |
04-22-2018 @ 20:03:38 - scheduled action 52851 (subscription payment) failed to finish processing after 300 seconds | |
04-22-2018 @ 20:03:38 - action args: subscription_id: 48221 | |
04-26-2018 @ 19:03:26 - scheduled action 53609 (subscription payment) failed to finish processing after 300 seconds | |
04-26-2018 @ 19:03:26 - action args: subscription_id: 52391 | |
04-26-2018 @ 22:05:28 - scheduled action 53801 (subscription payment) failed to finish processing after 300 seconds | |
04-26-2018 @ 22:05:28 - action args: subscription_id: 48312 |
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 | |
/** | |
* Plugin Name: Lift The Text | |
* Plugin URI: https://yourmom.com | |
* Description: Engage Maverick | ENGAGE! Make a conversation with your customer and customize EVERY piece of Text! | |
* Version: 1 | |
* Author: Brad | |
* Author URI: https://yourmom.com | |
* Requires at least: 4.9.6 | |
* Tested up to: 5.0-alpha-43049 |