Tag Archives: Hacks

How To Change Default Language Configuration To Your Native Language In WordPress ?

By default English is the localized language of your WordPress site that can be changed to your native language:

Open your wp-config.php file and add these lines:

define(‘WPLANG’, ”);
define(‘LANGDIR’, ”);

Important: Language translation file (.mo) must be placed in the default location – wp-content/languages (first) and then wp-includes/languages(second). As in the above function, you can define your own language directory. Learn more about WordPress in Your Language

How To Increase PHP Memory Limit In WordPress ?

You might have noticed common WordPress error sometimes while activating a new plugin or some other task:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2348617 bytes) in /home4/xxx/public_html/wp-includes/plugin.php on line xxx

This error shows up when you exceed your default Memory Limit. For fixing it up wp-config.php file and add the following line:

define(‘WP_MEMORY_LIMIT’, ’64M’);

How To Modify Post Auto-Save Configuration In WordPress ?

By default WordPress auto saves post on every 60 seconds, but you can easily modify this time according to your like. Open your site’s wp-config.php file and add the following line just above the Happy Blogging line:

define(‘AUTOSAVE_INTERVAL’, 120); // in seconds

In the above line I have given time of 120 seconds, you may change that as per your requirement.

You can also modify post revisions by limiting the number of revisions per post:

define(‘WP_POST_REVISIONS’, 5);

And for disabling post revision, set it to false as shown below:

define(‘WP_POST_REVISIONS’, false);

How To Clean Your BuddyPress Activity Stream ?

Now you can easily clean your BuddyPress site’s activity stream anytime you need. Now new WordPress update provides Activity menu in your Dashboard’s left side bar. Visit Admin’s Dashboard, click Activity. It displays all your BuddyPress activity stream posts.  You can select all or some posts and delete them permanently, just like you do in All Posts and All Pages list.

Continue reading How To Clean Your BuddyPress Activity Stream ?

How To Disable Required User Activation In Your BuddyPress Network ?

If your BuddyPress network is not open for pubic registration and you use invitation for making new registrations. Then you might like disabling BuddyPress required user activation. 

Continue reading How To Disable Required User Activation In Your BuddyPress Network ?

Make Facebook-Twitter Type Profile Address In Your BuddyPress Network

Allow yours BuddyPress site members to create their usernames in site’s root. So that their profile URL appear as domain.com/username Just like Facebook & Twitter where profile URLs are facebook.com/username and twitter.com/username
Continue reading Make Facebook-Twitter Type Profile Address In Your BuddyPress Network