function set_post_flags($flags, $post) { $flags['send_subscription'] = $this->should_email_post_to_subscribers($post); return $flags; }