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
jQuery(document).ready(function ($) { | |
const codemirrorSettings = wp.codeEditor.defaultSettings || {}; | |
const textareas = { | |
'css': 'textarea[name*="[custom_css]"]', | |
'js': 'textarea[name*="[custom_js]"]', | |
'php': 'textarea[name*="[custom_php]"]' | |
}; | |
for (const type in textareas) { | |
const textarea = document.querySelector(textareas[type]); |
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 | |
/** | |
* Plugin Name: Comments Importer | |
* Description: Import comments into a WordPress post by pasting Weebly-style HTML. | |
* Version: 1.0 | |
* Author: Junaid Hassan | |
*/ | |
if (!defined('ABSPATH')) exit; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>My Website</title> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
<p>Welcome to my web page.</p> | |
</body> | |
</html> |