WordPress stats: OWA plugin overhead in the future

I hadn’t used this specific solution, but any self-hosted analytics in general should be considered potentially huge resource hog: every async action in WordPress is effectively another WP core load, so if tracking code makes even one additional async request to back-end it effectively doubles the load; stat logging by nature cannot be cached; stat … Read more

Add some fileds to the wp_posts table

The second approach (joining additional table) is better for several reasons. When plugin is not active, you won’t retrieve it’s data (or with other words, you won’t select additional data unless you explicitly join it) It’s more maintainable. You can alter your plugin table without altering posts table and vice versa. The join most likely … Read more

Add Content to Content()

// Hook into the_content filter here function append_to_the_content($content){ ob_start(); // Start doing stuff here … // End doing stuff here … $new_content = ob_get_clean(); return $content.$new_content; // Append new content return $new_content.$content; // Prepend new content } // function append_to_the_content($content) // 11 priority avoid wpautop() that messes custom HTML add_filter(‘the_content’, ‘append_to_the_content’, 11); Regards.

WordPress programming video tutorials [closed]

Couple of sites I can refer: Start with wordpress codex http://codex.wordpress.org/ http://net.tutsplus.com you may find good starting point there. Search Youtube you can find some good ones there too. And if you feel like paying for it try some tutorial series from http://lynda.com Search google. I think its the best way to go 🙂 there … Read more

how to activate a plugin inside a theme

TGM Plugin Activation Class looks awesome!* […] the TGM_Plugin_Activation class can automatically install and activate multiple plugins that are either pre-packaged with a theme or downloaded from the WordPress Plugin Repository. And here’s an introduction to it: http://wp.tutsplus.com/articles/intro-to-tgm-plugin-activation-class-for-wordpress/ *Disclaimer: I haven’t had a chance to try it out for myself… yet.