Where should I add the necessary code to add an extra attribute to the kses allowed tags array?

In detail there’s the constant CUSTOM_TAGS that allowes defining $allowedposttags, $allowedtags, $allowedentitynames. Then you can simply set CUSTOM_TAGS to true and define the globals in a function hooked before kses gets included. The first available hook to fire an action that defines $allowedposttags would be muplugins_loaded, but I don’t know if kses is loaded before … Read more

What should be disabled to run on an internal network with no access to the Internet?

After more fruitless searching, I stumbled across this article from WP Tavern which mentioned a plugin then called “WP Local Dev Environment,” now called Airplane Mode. The plugin blocks a long list of things that WordPress does which require checking something from the Internet. While it is intended to be toggled on or off depending … Read more

How to backup and restore configurations

You must export all table beginning with your WordPress prefix. Open your phpmyadmin panel. Then open your wordpress database. Click “export” from top menu. Select “Export Method:” as custom. Select your all tables beginning your prefix. Then go to bottom of page click “go”. You got your SQL file. Move all files to new directory. … Read more

Set wp-content folder to Dropbox folder

You will need to create an alias to your Dropbox folder so those files can be accessed on your server. This can be done in httpd.conf: Alias /dropbox /Users/seth/Dropbox Or you could make a direct alias to the real wp-content folder: Alias /wp-content /Users/seth/Dropbox/Xammp-Content/wordpress/wp-content/ Then set WP_CONTENT_URL in wp-config.php appropriately: define( ‘WP_CONTENT_URL’, ‘http://localhost/dropbox/Xammp-content/wordpress/wp-content’ );