Skip to content

Instantly share code, notes, and snippets.

<?php
add_filter( 'nextgenthemes/arve/iframe_attr', 'arve_emergency_ref_patch' );
function arve_emergency_ref_patch( $attr ) {
$attr['referrerpolicy'] = false;
return $attr;
}
@nextgenthemes
nextgenthemes / debug-http-request.php
Created March 26, 2024 21:15 — forked from maheshwaghmare/debug-http-request.php
Debug the HTTP requests in WordPress wp_remote_post() or wp_remote_get() with the help of `http_api_debug` hook.
<?php
/**
* Debug HTTP requests in WordPress
*
* Fires after an HTTP API response is received and before the response is returned.
*
* Output in `wp-content\debug.log` file:
*
* [24-Apr-2019 06:50:16 UTC] ------------------------------
* [24-Apr-2019 06:50:16 UTC] https://downloads.wordpress.org/plugin/elementor.2.5.14.zip
@nextgenthemes
nextgenthemes / plymouth-preview.sh
Created April 16, 2013 14:09
preview plymouth theme on ubuntu
#!/bin/bash
## Preview Plymouth Splash ##
## by _khAttAm_ ##
## www.khattam.info ##
## License: GPL v3 ##
chk_root () {
if [ ! $( id -u ) -eq 0 ]; then