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 | |
/** | |
* 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 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 | |
$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 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
/// 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 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("WHMCS")) { | |
die("This file cannot be accessed directly"); | |
} | |
add_hook( 'ShoppingCartValidateDomain', 1, function ( $vars ) { | |
if ( $vars['domainoption'] != 'register') { | |
return []; | |
} |
OlderNewer