The main difference between the two pages is the method of sending messages. Recieving messages is the same in both.
Send messages to iframe using iframeEl.contentWindow.postMessage
Recieve messages using window.addEventListener('message')
{ | |
// Editor Functionalities | |
"diffEditor.renderSideBySide": false, | |
"editor.guides.bracketPairs": true, | |
"editor.bracketPairColorization.enabled": true, | |
"editor.cursorBlinking": "phase", | |
"editor.cursorSmoothCaretAnimation": false, | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.fontFamily": "JetBrainsMono-Regular, JetBrains Mono Regular, OperatorMono-Book, Liga Roboto Mono, Menlo, Monaco", | |
"editor.fontLigatures": true, |
<?php | |
add_filter( | |
'ep_prepare_meta_data', | |
function ( $prepared_meta ) { | |
foreach ( $prepared_meta as $key => $meta_val ) { | |
// Remove empty meta fields. | |
if ( empty( $key ) || empty( $meta_val ) || empty( $meta_val[0] ) ) { | |
unset( $prepared_meta[ $key ] ); | |
continue; | |
} |
<?php | |
/* | |
Plugin Name: WDS Hello World | |
Plugin URI: https://webdevstudios.com/ | |
Description: Teaching the basics of WP-CLI | |
Author: Web Dev Studios | |
Version: 1.0.0 | |
Author URI: https://webdevstudios.com/ | |
*/ | |
class WDS_CLI { |
<?php | |
use Elementor\Controls_Manager; | |
use Elementor\Element_Base; | |
use Elementor\Core\Files\CSS\Post; | |
use Elementor\Core\DynamicTags\Dynamic_CSS; | |
// Exit if accessed directly | |
if (!defined('ABSPATH')) { | |
exit; |
lsof -n -i4TCP:5037 | grep LISTEN
kill -9
adb devices
const WordpressPurgeCSS = { | |
whitelist: [ | |
"rtl", | |
"home", | |
"blog", | |
"archive", | |
"date", | |
"error404", | |
"logged-in", | |
"admin-bar", |
<?php declare(strict_types = 1); | |
function testPerformance($name, Closure $closure, $runs = 1000000) | |
{ | |
$start = microtime(true); | |
for (; $runs > 0; $runs--) | |
{ | |
$closure(); | |
} | |
$end = microtime(true); |