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 | |
require_once( WPEP_BASE_PATH . "/lib/integrations/Content_Library/Administration.php" ); | |
abstract class WPEP_Content_Library_Integration { | |
public $service_name = ''; | |
public $control_access_based_display = []; | |
public $meta_box_active = false; |
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 | |
class Foo { | |
public function __construct() { | |
add_action( 'init', [ $this, '_bar' ] ); | |
} | |
public function _bar() { | |
exit( "Request Blocked, action was not removed" ); |
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 | |
$t = ''; | |
$before = microtime(true); | |
for ($i=0 ; $i<100000 ; $i++) { | |
$dummy = empty( $t ); | |
} |
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 | |
add_action( 'restrict_manage_posts', function() { | |
remove_all_actions( 'restrict_manage_posts' ); | |
add_action( 'restrict_manage_posts', [ wpep_content_taxonomy(), '_content_type_filtering' ] ); | |
}, -1 ); |
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 | |
namespace WPEP\PlatformHealth; | |
class Security { | |
public function is_compromised() { | |
$map = $this->get_map(); | |
foreach( $map as $current_verification ) |
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 | |
/** 13 Sep 2016 | |
* @param $user_id | |
* @param $post_id | |
* @param string $post_type | |
* @return bool | |
*/ | |
function member_can_access($user_id, $post_id, $post_type = 'courses') { | |
if( !function_exists( 'wlmapi_get_member_levels' ) ) |
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
/** Not elegant, but does the trick. **/ | |
#wpstats { | |
opacity: 0; | |
float: left; | |
width: 0.1px; | |
height: 0.1px; | |
} |
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 | |
add_action( "init", function() { | |
if( get_option( "_temp_did_run_123456", false ) !== false ) | |
return; | |
$product_id = 1; | |
$post_types = array_keys( wpep_content_type()->contentTypes ); |
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( isset( $_GET['ref'] ) ) { | |
add_action( "wp_footer", function() { | |
echo '<iframe src="your-shop-domain-goes-here/?ec-ref=true&ref=' . intval( $_GET['ref'] ) . '" style="width:1px !important;height:1px !important;opacity:0 !important;"></iframe>'; | |
}); | |
} |
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 | |
require_once( "trait.php" ); | |
class Example { | |
use FilterHacks; | |
public function foo() { | |
$this->_filter_hack_deque( 'bar' ); |