Sumitbansal - sumitbansal.com - Sumit Bansal

Latest News:

How to get top parent page ID in wordpress 24 May 2013 | 05:24 pm

The solution to get the top parent page id is here, it is quite easy without using any recursion function. function get_top_parent_page_id() { global $post; // Check if page is a child page (any level...

How to validate email id in javascript 22 Apr 2013 | 11:47 am

Find the below code by which you can validate the email field using java-script on client side, var reg = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/; if(!reg.test(document...

How to export Email List from cpanel using javascript and firebug 11 Apr 2013 | 11:37 am

To export the email address with the help of java-script: Login your cpanel and select the Email Accounts under the Mail section and change the result per page to show... Read more »

Mysql if condition in update query 9 Nov 2012 | 03:13 pm

We can use the IF CONDITION in update query, given blow example will show how we can use the IF Condition in update query. Suppose we have a table that... Read more »

Add/Remove unwanted links from wordpress admin bar 8 Nov 2012 | 02:55 pm

Remove links from wordpress admin bar: Given below code remove the wordpress logo and other links from the admin bar. function annointed_admin_bar_remove() { global $wp_admin_bar; /* Remove their stuf...

Remove unwanted menu/submenu links from wordpress dashboard 5 Nov 2012 | 03:35 pm

Remove menu page links: function remove_menus() { global $submenu; remove_menu_page( ‘link-manager.php’ ); // Links remove_menu_page( ‘edit-comments.php’ ); // Comments remove_menu_page( ‘themes.php’ ...

Get customize categories in wordpress 19 Sep 2012 | 05:21 pm

The following example will show the categories with checkbox ’1′, ‘hide_empty’ => ’0′ ); $categories = get_categories($args); foreach($categories as $key => $value){ ?> Read more »

Add Custom Post Type Counts to the Dashboard 12 Sep 2012 | 12:41 pm

we have several ways to add custom post type counts to the dashboard including right_now_content_table_end. For Example: function add_area_counts() { if (!post_type_exists(‘escorts’)) { return; } $num...

PHP5 Static Keywords 30 Jun 2012 | 11:53 am

PHP5 offers a static methods and static member variables.A special kind of method that can be called without instantiating a class.Static methods don’t depend on the properties of a particular instanc...

PHP5 Interfaces 30 Jun 2012 | 11:27 am

An interface simply lists (function prototype) the methods a class must implement. However, in PHP a class can implement multiple interfaces and these interfaces can also be used in type hinting. An ...

Related Keywords:

schedule a task on web server php, script getting current value of usd to inr, phpmailer attach, date ('y-m-j', get city by ip, dollar to rupees api, get full content of the postid, phpmailer attachment desde input file, check login status wordpress, php richtexteditor to html

Recently parsed news:

Recent searches: