Category: editor

Wordpress Expert

Wordpress Expert

web developer at WPLAB
Website development like the art
Wordpress Expert

This code has to be pasted into your theme’s functions.php file. It can be customized to deal with custom post types, as shown on line 16 and after. add_filter( ‘default_content’, ‘pu_default_editor_content’ ); function pu_default_editor_content( $content ) { global $post_type; switch( $post_type ) { case ‘post’: $content = ‘Default content for blog posts.’; break; case ‘page’: […]

Wordpress Expert

Wordpress Expert

web developer at WPLAB
Website development like the art
Wordpress Expert

This code has to be pasted into your theme’s functions.php file. It can be customized to deal with custom post types, as shown on line 16 and after.

Wordpress Expert

Wordpress Expert

web developer at WPLAB
Website development like the art
Wordpress Expert

First, place the code below into your theme’s functions.php file and don’t forget to save.

Wordpress Expert

Wordpress Expert

web developer at WPLAB
Website development like the art
Wordpress Expert

Before pasting this code in your function.php file, edit line 11 and replace contact.php by the name of the page you want to disable the editor for.

Wordpress Expert

Wordpress Expert

web developer at WPLAB
Website development like the art
Wordpress Expert

Simply paste this code where you want to display the active plugin list. Once saved, active plugins will be displayed.

Wordpress Expert

Wordpress Expert

web developer at WPLAB
Website development like the art
Wordpress Expert

Simply paste this code into your function.php file. Edit lines 5 and 6 at your convenience.

Wordpress Expert

Wordpress Expert

web developer at WPLAB
Website development like the art
Wordpress Expert

Simply paste the following code into your functions.php file:

Wordpress Expert

Wordpress Expert

web developer at WPLAB
Website development like the art
Wordpress Expert

Just run the following query on your WordPress database to delete comments with nastyspamurl as url. Don’t forget to replace the table prefix wp_ if your database is using another prefix.And of course, create a backup of your database before running the query!