why shouldn’t i save metadata when its a revision

You omitted how is this function called. I assume it is added to save_post action. This action passes current post id as argument. In case of revision that would be revision id and not parent post id. So, as I see it, there is no reason to save additional data for revision (creating duplicate set … Read more

Feature Differences between WordPress.com and Hosting on your Own Server?

WordPress.com is running the same code that you can download for free at WordPress.org … the biggest difference is that .com is run by a for-profit company and .org is maintained by a non-profit community. WordPress.com, as a for-profit enterprise, has certain features disabled (for security purposes) and certain features limited so that users can … Read more

greatest() function returns undefined property

I think you want to use get_var(), not get_row() – looking at the documentation, MySQL’s GREATEST just returns a single value. $results will then just be the value of the greatest (be it up or down). If you want the greatest up and the greatest down, use; $wpdb->get_row(“SELECT GREATEST(up) AS ‘up’, GREATEST(down) AS ‘down’ …”)

How to get multiple Action Hooks in an Array

If you want to hook into multiple actions, you have to call add_action multiple times. However, this is not so hard. Let’s take your plugin class as an example: class WPSE6526_getStatic // Always prefix your plugin with something unique, like your name. Here I used the question number { var $_renderTasksOn = array( ‘wp_insert_post’, ‘wp_insert_comment’, … Read more