You need to load your plugin at vert last? Well, sometimes we develop a simple plugin that is dependent to other plugins, something like add-on. So, in those cases, the addon plugins need to be loaded after the parent plugin. Here is a small snippet that need to put at the addon plugin to make… Continue reading How to load a wordpress plugin at very last
Category: press
How to make your wordpress secure, wp config tips and many more
You don’t want your site to be hacked, right? Security should be at the top of to-do list. It doesn’t matter which CMS or platform you use for your website or application or portal, but you need to always think about security. Well, you never can stop a hacker to hack your site, but you… Continue reading How to make your wordpress secure, wp config tips and many more
Include GitHub Gists in WordPress content
WordPress.com makes it dead easy to include Gists in posts, but that isn’t available in the WordPress software by default.  So let’s add it! GitHub’s Gist service normally provides an embed code to include Gists in other web sites. The embed code is really just a script to load the Gist via JavaScript. Since WordPress normally strips content… Continue reading Include GitHub Gists in WordPress content
Limit one blog per user in a wordpress multisite
In a wordpress multisite, an user can create as many blog as he wants. If you Pro Sites you can control this. Pro Sites is a giant plugin that will help you to have control over the whole network. But if you just want to limit one blog per user in a wordpress multisite and… Continue reading Limit one blog per user in a wordpress multisite
Easily display member cards with WPMU DEV Membership
Here’s a simple shortcode snippet to let you easily add a membership card for your site’s members when using WPMU DEV’s Membership plugin. This was requested in the WPMU DEV forums, where we love to help members out with simple and useful custom snippets. WPMU DEV Forum topic: Display Membership Data Print/Mobile The snippet adds a… Continue reading Easily display member cards with WPMU DEV Membership
How to add multiple custom excerpt length in wordpress
In archive pages, we use the_excerpt() function to show excerpt of each posts. Be default, wordpress uses 55 words as excerpt if you don’t enter anything in Excerpt meta field. Now, if you want to change the length of excerpt, there is a filter available for that. excerpt_length is the filter that you can use… Continue reading How to add multiple custom excerpt length in wordpress
WordPress: How to load all styles and scripts in footer
We want to load styles and scripts in footer in wordpress to load it faster. In fact the best practice is to load styles in head and the scripts in footer. We can use some minify plugins to minify all styles and/or scripts. But sometimes it creates issues, in most cases in SSL enabled pages… Continue reading WordPress: How to load all styles and scripts in footer
How to enable php mail() in your ubuntu
In my last post I showed you how you can set up an ubuntu server for apache, php, mysql, phpmyadmin and wordpress multiste. Below is the link if you want to take a look: How to setup a VPS (Ubuntu) for WordPress hosting – A to Z tutorial Today, we will learn how we can… Continue reading How to enable php mail() in your ubuntu
How to hide a plugin for non-admin users in wordpress
Today I will show how you can hide a plugin from the users that are non-admin. If you use a multisite, you can control a lots of stuffs with Pro Sites plugin. But what if you don’t want to use Pro Sites? This simple scripts will do the job for you. [php] function custom_plugins( $plugins… Continue reading How to hide a plugin for non-admin users in wordpress
How to redirect user to his primary blog on login in a multisite
Some web admins don’t like to to redirect the user to network site dashboard upon login. So, they want to redirect the user to the primary blog’s dashboard. Well, it’s fair enough. So, if an user 5 subsites, and when he will login, he will be redirected to his primary blog’s dashboard. He will still… Continue reading How to redirect user to his primary blog on login in a multisite