Snippets · Wordpress · WP-ADMIN

How to Change Placeholder In Post Title

In WordPress Admin, You can change Placeholder of `Post Title` by using following code into your theme’s `functions.php` file. Add this Code into your theme’s functions.php file

Rate this:

Snippets · Wordpress · WP-ADMIN

Enable Hidden Admin Feature Displaying ALL Site Settings

Here is little Snippets of WordPress that I’d like to share with you.Following code will help you to display complete list of all the settings from `options` table of database. You can see this page in “wp-admin –> Setting –> All Settings“. Add Following code to your theme’s `functions.php` file: function enable_all_settings_link() { add_options_page(__(‘All Settings’),… Continue reading Enable Hidden Admin Feature Displaying ALL Site Settings

Rate this:

Snippets · Wordpress

WordPress – Adding Custom Fields in Registration Form

Using following three steps, you can add your custom fields in WordPress Registration Form. 1). Add a hook to registration form to add a new form element, 2). Validating registration form after submission using the filter registration_errors hook. 3). Add below code to Updating user meta in database after successful registration. Have fun!

Rate this:

Snippets · Wordpress

Email Restrictions For Registration In WordPress

Here is a way to restrict registration to a specific email domain using following WordPress hook. You can add more domains to restrict list by adding domain into $blockDomains. and also you can edit your custom error message(By changing $error_message)…

Rate this:

PHP

Build a dynamic calendar with PHP

Here you can build a dynamic Calendar with PHP, Following function will generate table structure of calender… Simple uses:- Also, You can add Css to this calender. Eg:-

Rate this:

Wordpress

List All Hooked Functions

WordPress hooks are very useful because they allow you to “surcharge” an existing WP function with your own code. But when things goes wrong, it should be useful to be able to list all hooked WordPress functions. Here is the code to it. The first thing to do is to paste the following function in… Continue reading List All Hooked Functions

Rate this: