Skip to content

Instantly share code, notes, and snippets.

@KaineLabs
Created November 1, 2018 14:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save KaineLabs/1d7bb14485f6a446a5d94791c2afe6bd to your computer and use it in GitHub Desktop.
Save KaineLabs/1d7bb14485f6a446a5d94791c2afe6bd to your computer and use it in GitHub Desktop.
Enable Activity WP-Foro Posts
<?php
/**
* Add Activity New Allowed Actions.
*/
function yzc_add_show_everything_filter_actions( $actions ) {
$actions[] = 'wpforo_like';
$actions[] = 'wpforo_post';
$actions[] = 'wpforo_topic';
return $actions;
}
add_filter( 'yz_wall_show_everything_filter_actions', 'yzc_add_show_everything_filter_actions' );
/**
* Enable Activity WP-Foro Posts Visibility.
*/
function yz_enable_wpforo_activity_posts( $post_types ) {
$post_types['wpforo_like'] = 'on';
$post_types['wpforo_post'] = 'on';
$post_types['wpforo_topic'] = 'on';
return $post_types;
}
add_filter( 'yz_wall_post_types_visibility','yz_enable_wpforo_activity_posts' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment