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
/// No like, just literal | |
$nl = [ | |
'_transient_wpassetcleanup_assets_info', | |
'_transient_wc_attribute_taxonomies', | |
'_transient_dirsize_cache', | |
'asp_updates', | |
'Avada_backups', | |
'aviaAsset_css_filecontent', | |
'aviaAsset_js_filecontent', | |
'apmm_font_family', |
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 | |
$url = 'https://status.i3d.net/'; | |
function get_page_as_string( $url ) { | |
$ch = curl_init(); | |
curl_setopt( $ch, CURLOPT_URL, $url ); | |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ); | |
curl_setopt( $ch, CURLOPT_VERBOSE, 0 ); | |
curl_setopt( $ch, CURLOPT_HEADER, 0 ); |
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 | |
/** | |
* Outputs minified WP Core Block styles css in footer, only the blocks you actually use in the_content() | |
* Needs wp_deregister_script( 'wp-block-library' ); | |
* | |
* @author Ramon Fincken, ManagedWPHosting.nl | |
* | |
* @param string $block_content | |
* @param array $parsed_block | |
* @return string |
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 | |
require __DIR__ . '/vendor/autoload.php'; | |
use Transip\Api\Library\TransipAPI; | |
use Transip\Api\Library\Entity\Domain\DnsEntry as DnsEntry; | |
use Badcow\DNS\Zone; | |
use Badcow\DNS\Rdata\Factory; | |
use Badcow\DNS\ResourceRecord; | |
use Badcow\DNS\AlignedBuilder; |
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
add_action( 'admin_head', [ $this, 'gutenberg_sidebar_more_width' ] ); | |
public static function gutenberg_sidebar_more_width() { | |
?> | |
<style> | |
@media (min-width: 782px) { | |
.interface-interface-skeleton__sidebar { width: 450px !important; } | |
.interface-complementary-area { width: 450px !important; } | |
} |
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
X are currently looking at this product. | |
jQuery(function() { | |
setInterval(function() { | |
var myDiv = jQuery("#viewing_now"); | |
var myRand = Math.floor(Math.random() * 16) + 8; | |
myDiv.text(myRand); | |
}, 5000); | |
}); |
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
DROP TABLE `wf_fBadLeechers`, `wp_wfBlockedIPLog`, `wp_wfBlocks`, `wp_wfBlocksAdv`, `wp_wfConfig`, `wp_wfCrawlers`, `wp_wfFileMods`, `wp_wfHits`, `wp_wfHoover`, `wp_wfIssues`, `wp_wfLeechers`, `wp_wfLockedOut`, `wp_wfLocs`, `wp_wfLogins`, `wp_wfReverseCache`, `wp_wfScanners`, `wp_wfStatus`, `wp_wfThrottleLog`; |
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 | |
// NOTE, see updates function managedwphosting_woocommerce_order_query_args | |
/** | |
* Inspired by https://stackoverflow.com/questions/53140009/add-search-by-customer-ip-address-to-woocommerce-order-search | |
* Code idea borrowed from https://www.skyverge.com/blog/filtering-woocommerce-orders/ && https://gist.github.com/bekarice/41bce677437cb8f312ed77e9f226a812 | |
*/ | |
add_filter( 'request', 'filter_orders_by_payment_method_query' ); | |
function filter_orders_by_payment_method_query( $vars ) { |
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
"scripts": { | |
"test": [ | |
"web/vendor/bin/phpcs" | |
], | |
"post-update-cmd": "bash muplugins.sh", | |
"post-install-cmd": "bash muplugins.sh" | |
} |
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
"extra": { | |
"wordpress-install-dir": "web/wp", | |
"installer-paths": { | |
"web/app/plugins/{$name}": [ | |
"type:wordpress-plugin" | |
], | |
"web/app/mu-plugins/{$name}": [ | |
"type:wordpress-muplugin" | |
], | |
"web/app/themes/{$name}": [ |
NewerOlder