Hello Friends!!

Hope you all are doing well :)

In admin if you want to add new custom field on media details page then you can do it in a easy way. You will not need to edit in wordpress core files , using wordpress hooks you can do it by add the code in your theme function file.

I am given to a example for add to new field “External URL”, You will need to add the code in your theme function file.


/** Add new Custom Field On Media detail page */
function add_custom_media_fields($form_fields, $post) {
    $form_fields["externalUrl"] = array(
        "label" => __("External URL"),
        "input" => "text", // this is default if "input" is omitted
        "value" => get_post_meta($post->ID, "externalUrl", true)
    return $form_fields;
add_filter("attachment_fields_to_edit", "add_custom_media_fields", null, 2); 

/** Save the new custom field value into database*/
function save_custom_media_fields($post, $attachment) {
    $my_data = sanitize_text_field( $attachment['externalUrl'] );
    update_post_meta( $post['ID'], 'externalUrl', $my_data );
return $post;

add_filter('attachment_fields_to_save', 'save_custom_media_fields', 10, 2);

Hope you will all enjoy my code.

Hello Friends!

Hope you all are doing well!

I am here going to describe you a important Magento script for change the order information on success order.

Using my script, you can easily update recent order information like “customer group”, “payment status”, “order confirmation” etc.

/** Change Custom Payment Status */
                $orderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
                $order = Mage::getModel('sales/order')->loadByIncrementId($orderId);
                $order->setData('state', 'complete');
                $history = $order->addStatusHistoryComment('Order was set to Complete by our automation tool.', false);
           /* End payment status */


Enjoy script! :)

Hello Friends,

Hope you all doing well :)

Last time i was released version 1.2 https://raghunathgurjar.wordpress.com/2014/12/01/lunched-new-version-1-2-of-protect-wp-admin-plugin-wordpress/ and now launching new version 1.3 of “Protect WP-Admin” wordpress plugin with some new features.

In current version 1.3 admin can able to change the wp-login page logo by configure the plugin settings and also admin can define the wp-login page body background color also.

Version 1.3

  • Added an option for define to admin login page logo
  • Added an option for define to wp-login page background-color
  • Fixed some minor css issues

Click here to view all change log
Click here to download plugin


Hello Friends,

If you want to close the ColorBox Popup window using your custom button then use given code on your site.

Example : <input type=”button” value=”Continue to map” id=”et-reset” class=”custom-close”>


colorbox = jQuery.colorbox; 
jQuery(".custom-close").click(function() { 

Hope you all will be enjoy this script.


Happy New Year To All My Friends!

Hello friends!

Hope you all are doing well!

I have launched new version 1.6 with some new features, So go here http://wordpress.org/plugins/custom-share-buttons-with-floating-sidebar/ for download the new version.


Change Log 1.6

  • Added new option for disable floating sidebar for mobile site
  • Added two new Stumbleupon and Reddit buttons
  • Added options for define Pinterest Share images
  • Fixed show/hide button issue

Click here to view all changelog

Click here to download

Please do not forget to leave your feedback about my plugin on wordpress site!

Enjoy! :)

Hello Friends,

Hope you all doing well :)

I have launched new version 1.2 of “Protect WP-Admin” wordpress plugin.

If you run a WordPress website, you should absolutely use “protect-wp-admin” to secure it against hackers.

Protect WP-Admin fixes a glaring security hole in the WordPress community: the well-known problem of the admin panel URL. Everyone knows where the admin panel, and this includes hackers as well.
Protect WP-Admin helps solve this problem by allowing webmasters to customize their admin panel URL and blocking the default links. After you setup Protect WP-Admin, webmasters will be able to change the “sitename.com/wp-admin” link into something like “sitename.com/custom-string”.
All queries for the classic “/wp-admin/” and “wp-login.php” files will be redirected to the homepage, while access to the WP backend will be allowed only for the custom URL.
The plugin also comes with some access filters, allowing webmasters to restrict guest and registered users access to wp-admin, just in case you want some of your editors to log in the classic way.



Version 1.2

  • Added new option for allow admin access to non-admin users
  • Added condition for check permalink is updated or not
  • Fixed a minor issues (logout issues after add/update admin new url)

Click here to view all change log
Click here to download plugin


Hello Friends!

Hope you all are doing well! :)

I am here now going to share some useful information with you to get the specific tag value from XML format.

$dom = new DOMDocument; 
$dom->loadXML($result); /* define XML path */
$customValues = $dom->getElementsByTagName('executionStatus'); 
foreach ($customValues as $val) { 
    echo $val->nodeValue, PHP_EOL; 

Hope you all will enjoy this code!

Hello Friends,

Hope you all doing well :)

I have launched my another new  “Protect WP-Admin” wordpress plugin.

“Protect WP-Admin”
  is a very help full plugin to make wordpress admin more secure. Protect WP-Admin plugin is provide the options for change the wp-admin url and make the admin login page private(spam user can’t access the admin login page).





Click here to download plugin


Hello Friends!

If you want to add a new columns with custom meta fields on list page for any post type then you can do it using the wordpress hooks.

Using hooks you have no need to edit in wordpress core file, you can do all by edit in theme function.php file.

add_filter( 'manage_edit-news_columns', 'news_edit_columns_title' ); 
//Here news is a custom post type , you can update its value according to post type.
/* We are taking zipcode field as custom filed */
function news_edit_columns_title( $columns ) {
 $columns = array(
 'cb' => '<input type="checkbox" />',
 'title' => __( 'Title', 'Theme_Name' ),
 'zipcode' => __( 'Zipcodes', 'Theme_Name' ),
 'date' => __( 'Date', 'Theme_Name' ),
 return $columns;

/* Set the zipcode field value to that columns */

add_action( 'manage_posts_custom_column', 'add_news_columns_value' );
function add_news_columns_value( $column ) {
$custom_fields = get_post_custom();

 switch ( $column ) {
 case 'zipcode' :
 echo get_post_meta( get_the_ID(), 'custom_zipcode_value_key',true );
//here custom_zipcode_value_key is the meta key for zipcode

You can visit on wordpress official site for know more about manage_posts_custom_column & manage_edit-post_type_columns functions.


Hope you all will be enjoy my code!