Hot answers tagged

1

I was able to figure this out. Here's the code, explanation follows. $subscribers = get_users('role=subscriber'); foreach ($subscribers as $subscriber) { $subscriber_id = esc_html($subscriber->user_login); add_action('init', function() use($subscriber_id) { add_feed($subscriber_id, function() { get_template_part('feed', ...


1

Use WordPress functionality The function get_lastpostmodified() is extensively documented. It says in the wordpress documentation that the function accepts a timezone and a post_type. Documentation From WordPress Trac: wp-includes/post.php1 5355 * @param string $post_type Optional. The post type to check. Default 'any'. 5356 * @return string The ...



Only top voted, non community-wiki answers of a minimum length are eligible