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 | |
if ( !defined( 'WP_CLI' ) ) return; | |
/** | |
* Comment Generate | |
*/ | |
class Comment_Generate extends WP_CLI_Command { | |
/** |
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 pw_edd_maybe_disable_stripe( $gateways ) { | |
$disable = false; | |
$cart_items = edd_get_cart_contents(); | |
if( $cart_items ) { | |
foreach( $cart_items as $item ) { |
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 | |
// Build an array that we can use for filtering our submitted data. | |
$args = array( | |
// fields is a key in our associative array that means we're looking for field values. | |
'fields' => array( | |
// 1 represents our field id and 'Kevin' represents the value we're looking to match. | |
1 => 'Kevin', | |
// If you want to filter by multiple fields, you'd add them here. | |
// 2 => 'checked' | |
), |
OlderNewer