Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seancojr/32e4203d998f07dff87e3cd54f62da62 to your computer and use it in GitHub Desktop.
Save seancojr/32e4203d998f07dff87e3cd54f62da62 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