This file contains 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
.jpg, .jpeg, .png, .gif, .bmp, .svg, .mp4, .avi, .mkv, .mov, .wmv, .flv, .mpeg, .3gp, .webm, .ogv |
This file contains 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 | |
use Inpsyde\WpContext; | |
// Instantiate the class | |
$context = WpContext::determine(); | |
// Use the WpContext::is() method to check context | |
if (!$context->is(WpContext::FRONTOFFICE, WpContext::BACKOFFICE)) { | |
return false; | |
} |
OlderNewer