WPML language translation not working in wordpress ajax call

Recently, I had come across a issue which I thought very useful to share with the developers working on WordPress and using WPML for language translations. Issue: WPML language translation not working in wordpress ajax call Solution: 1. Make sure you are passing language variable in with ajax url. e.g. http://www.example.com?lang=ar 2. Use the following…

Migrated WordPress website to a new server with a new domain, want to update all old domain links with new?

This is a very common but very much of use in the life of WordPress developers. Consider a situation where we have restlessly worked on a website with domain www.example1.com, while adding content, uploading images to posts and other pages we get the domain www.example1.com in all pages or posts data stored in database and…

WordPress User Roles and Capabilities

In WordPress a user can be distinguished based upon the assigned role. The concept of roles provide a vital role in determining the ability of a user i.e. what a user can do or cannot do within the website. For example: A user can/cannot be given privilege to perform the following operations: 1. Creating Pages…