Email stats at Ma.tt contact form

This is actually not all that hard to do using the imap functions in PHP: http://php.net/manual/en/book.imap.php Basically, he has some script somewhere which runs every hour or so. I have not seen this script, but I can venture a good guess about how it works. First, it connects to his email system, probably using imap. … Read more

How can I track active users of my plugin? and why doesn’t WordPress.Org offer this?

You cannot get these data. There are several issues with plugin usage tracking: No clear definition of a user: Think multi-site, local installations, intranets … Privacy: You would have to ask the user before you can activate tracking. There are many good reasons not to send any data to an unknown entity without consent (traffic, … Read more

Better way to get tag stats?

I addressed a similar problem not long ago – it’s all in the memory: $post_ids = get_posts( array( ‘posts_per_page’ => -1, ‘post_status’ => ‘publish’, ‘fields’ => ‘ids’, // Just grab IDs instead of pulling 1000’s of objects into memory ) ); update_object_term_cache( $post_ids, ‘post’ ); // Cache all the post terms in one query, memory … Read more

How to disable Jetpack modules such as Stats?

If you press the “Learn More” button for each Jetpack Module, you will get a “Deactivate” button showing up to the right. There is also a fork call Jetpack Lite http://wordpress.org/extend/plugins/jetpack-lite/ A NOT official “lite” fork of Jetpack plugin containing only Stats and WP.me Shortlinks modules. All other modules removed (files and code).

Adding Custom Post Type Counts to the Dashboard

Yes, there are several actions within that widget, including right_now_content_table_end. Example: function my_right_now() { $num_widgets = wp_count_posts( ‘widget’ ); $num = number_format_i18n( $num_widgets->publish ); $text = _n( ‘Widget’, ‘Widgets’, $num_widgets->publish ); if ( current_user_can( ‘edit_pages’ ) ) { $num = “<a href=”https://wordpress.stackexchange.com/questions/5318/edit.php?post_type=widget”>$num</a>”; $text = “<a href=”https://wordpress.stackexchange.com/questions/5318/edit.php?post_type=widget”>$text</a>”; } echo ‘<tr>’; echo ‘<td class=”first b b_pages”>’ . … Read more

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