WordPress.org

Ready to get started?Download WordPress

Forums

ThreeWP Activity Monitor
[resolved] Log any kind of content (not just posts) (2 posts)

  1. Ricardo
    Member
    Posted 3 years ago #

    I didn't like the fact that the last version logs only standard posts. Most of my content is based on pages and custom post types, and since version 1.4 this plugin wasn't logging any of them.

    If anyone runs into this same issue and wants a workaround, edit the file ThreeWP_Activity_Monitor.php (lines 1256-1260):

    private function post_is_for_real($post)
    {
    	// Posts must be published and the parent must be 0 (meaning no autosaves)
    	// Also: posts must actually be posts, not pages or menus or anything.
    	return $post->post_status == 'publish' && $post->post_parent == 0 && $post->post_type == 'post';
    }

    All you have to do is remove or comment this part:

    && $post->post_type == 'post'

    That's it. Now TAM will log every kind of content, not just posts. Hope it helps.

    http://wordpress.org/extend/plugins/threewp-activity-monitor/

  2. Andrzej
    Member
    Posted 3 years ago #

    Thanks for that trick. It now adds new 'page' posts but the timestamp seems to be off. A page just added a few minutes ago shows as "4 hours ago".

    I'm running latest TAM and WP3.2

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic