In WordPress, we use plenty of plugins, Some of these plugins require us to place a shortcode in the post, like [favourite_posts]. Shortcode may be a good way to add functionality on our site, but when we deactivate the plugin, the shortcode in the post content donβt get removed.
Removing shortcodes from the post content
Wordpress users use shortcodes in the post content for integrating PHP or other type of code between the content and may be a good way to add functionality to the site. But sometimes we need for removing shortcodes from the post content from a specific page or specific post.
What is SQL Injection
SQL Injection is the hacking technique which attempts to pass SQL commands (statements) through a web application for execution by the backend database. If user input is inserted without modification into an SQL query, then the application becomes vulnerable to SQL injection
Detect orientation change on mobile devices
Let’s check out how we can detect orientation change on mobile devices. Mobile devices have two type of layout view, one is portrait and other one is landscape view.
jQuery slideUp(), slideDown() and slideToggle()
The jQuery slide methods slides elements up and down. jQuery comes with three handy methods to create the sliding effect easily :
iPad/iPhone detection using JavaScript
every website is designed as a responsive so that it can be visited on any resolution window. But browser does not behave same on all the devices. For that, In CSS, we use media query. But using css, we can’t generate html fully compatible with all the devices.
I wanted to post another useful snippet of code for iPad/iPhone detection using javascript
WordPress Interview Questions – I
WordPress has a wide range of questions asked for interview. I have mentioned a list of WordPress Interview Questions and their answers in this article. They are useful for developers as well as normal users too. Let’s have a look.
find last position of a substring into a string
Sometimes we need to find last position of a substring into a string. Substring may be a character or a part of a string. Javascript provide us a method
check a substring into a string
Sometimes we need to check the existence of a character or sub-string into a string or find the position of a character or sub-string into a string. Javascript provide us a very simple method :
Add Link to Copied Text
Do you want to add a link back to your website or page when someone copy content from your website or want to show some custom message (like copyright) instead of copied content or just don’t want to let user copy then Add Link to Copied Text Plugin can do that for you.
You can know more and download this plugin via clicking the Continue Reading link given below: