Programming-2

How To Load All Posts From The Current Week

Using the following snippet and you will be able to load posts from the current week.

Source Snippet/Code: Christian Brückner

How To Add A Custom Message To The Editor Pane

Simply by copying the following snippet in your theme’s functions.php file, you will be able to add a custom message to the editor pane.

Snippet Source/Credit: WP Tuts

How To Remove Widgets From WordPress Dashboard

Simply paste the following snippet in your theme’s functions.php file and you will be able to accomplish the task.

Snippet Source/Credit: WP Guru

How To Delete WordPress Post Revisions Using Your Functions.php File

Simply paste the following snippet in your functions.php file and you are done.

Snippet Source/Credit: Hardeep Asrani

How To Limit Posts Per Page On Search

Just paste the following snippet in your functions.php file and replace the number on line 3 by the desired number of posts you wish to display and you are done.

Snippet Source/Credit: WordPress.org