X

Functions

Creating Custom Options Page in WordPress

Creating Custom Options Page in WordPress
Creating Custom Options Page in WordPress. Creatting Admin Page options is not really a hardest part of WordPress. You can play and make your own options like in minutes. In this tutorial, you can able to understand, how to create options in easy steps.  There are few plugins available, and also you can create from few WordPress plugins. But those are more space consumed and ...

WordPress Password Hash Generator PHP

WordPress Password Hash Generator PHP
WordPress Password Hash Generator. Some of the days I used to google, what kind of mechanism used in WordPress to create a hashing password. Which really people like developer needs to get idea. sometimes, we may need to crack the secret to avoid some critical situations.  So I have found it with help of WordPress to identify the function,  and the class, that they used ...

PayPal IPN Listener WordPress Without Using Plugin

PayPal IPN Listener WordPress Without Using Plugin
Introduction PayPal IPN Listener WordPress Without Using Plugin. PayPal ipn will be sent you to validate each transactions. You can validate the transaction details with help of it. For IPN things,it will be sent you indirectly.  Your website users can’t see it.  So, this is private and hidden notification to you from PayPal. Let’s begin with receiving Hidden URL and IPN functionality. It might be ...

How to Change the Default Gravatar With Your Custom Image on WordPress

How to Change the Default Gravatar With Your Custom Image on WordPress
How to Change the Default Gravatar With Your Custom Image on WordPress? Especially, on  some works we , feel to use our custom default image as default gravatar for it. And I was specially used the same thing for this article, you can see here with the following example. Here is a small piece of code enclosed with a custom function to hook it. Once ...

Translate your WordPress Site for Each Users

Translate your WordPress Site for Each Users
Translate your WordPress Site for Each Users. Translating a WordPress site based on User choice is really easy with your theme development,  Here Let me explain you step by step to make your WordPress site perfectly viewed based on your registered users preferred language. we need to create language files such as .PO and .MO files for translating from one language to another.  Here I ...

Simple Subscribe Form WordPress Without Using Plugin

Simple Subscribe Form WordPress Without Using Plugin
Simple Subscribe Form WordPress  without using any plugin. You can create your own features without using third party plugin for it. Let’s make a plugin for our functionality of simple email subscription. email subscription is a simple form submission with email. So let’s make the form first. Subscription Form :  The following code helps you to create your form for email news letter subscription. <form ...

How to get an User Role in WordPress

How to get an User Role in WordPress
How to get an User Role in WordPress. getting an user role have few methods. Let’s check the function here. For current user you can use the below function to get the current user role. function kv_get_current_user_role(){ $current_usr_rle = ''; global $current_user, $wp_roles, $wpdb; get_currentuserinfo(); foreach ( $wp_roles->role_names as $role => $name ) : if ( current_user_can( $role ) ) $current_usr_rle = $role; endforeach; return ...

WordPress – How to get weather update without using plugins

WordPress – How to get weather update without using plugins
Generally we have planned to use Google api  to get the weather updates exactly. But working with Google api is not simple like openweathermap.  So let’s try to get current weather of London with the following code. $lndn_request = 'http://api.openweathermap.org/data/2.5/weather?q=London,uk&appid=2de143494c0b295cca9337e1e96b00e0';     The above one will help us to get an json  encoded string from openweathermap.  It’s absolutely  free to get.  But you need an api ...

How to get all the attachments in WordPress

How to get all the attachments in WordPress
How to get all the attachments in WordPress. Getting all attachment is good one for the common operations with media files.  Let’s try coding the feature to get all the attachments  which attached with a post. $args = array('post_type'=>'attachment','numberposts'=>null,'post_status'=>null); $attachments = get_posts($args); if($attachments){ foreach($attachments as $attachment){ // here your code echo $attachment->ID; } } And if you want to a posts all attached images or ...

How to set User Last Login Date and Time in WordPress Without Plugin

How to set User Last Login Date and Time in WordPress Without Plugin
How to set User Last Login Date and Time in WordPress. Usually we don’t mind install a plugin for a small operations. But a small piece of code can help you to get it done it. I hope this one solves you not to use plugin for users last login access. Let’s move to code.  Here we are going to use two user meta’s to ...

Menu

Sidebar

Subscribe E-mail Updates

Subscribe to our email newsletter.

 

Advertisement

Category Posts