Handling error states with admin_post

You can use set_transient with the user_id if you are relying on users being logged in, otherwise, cookie would probably be better. For logged in users, you can have the user_id get set within the name of the transient. An example here: function form_post() { $user_info = wp_get_current_user(); $user_id = $user_info->exists() && !empty($user_info->ID) ? $user_info->ID … Read more

How to hook get_terms() to only show count of posts that have custom meta

As far as I remember counts for terms are stored in database, so there is nothing to modify when you fetch them – you simply get ready-made numbers. So you will either need to implement and maintain your special logic for counts completely separately or try to recalculate and modify native counts, see wp_update_term_count_now().

Restrict the Number of Posts an Author can Publish (over time)?

Closest thing out there seems to be: http://www.spaw.it/359/wordpress-plugin-limit-post-creation/, but it only sets a single, hard limit. I think your best bet is to utilize this WordPress thread with code to limit number of posts for registered users: http://wordpress.org/support/topic/limit-the-number-of-posts-a-user-can-make?replies=18 You would need to change the $count_posts var to only count posts made within your time-frame…

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)