Created
November 1, 2018 14:36
-
-
Save KaineLabs/1d7bb14485f6a446a5d94791c2afe6bd to your computer and use it in GitHub Desktop.
Enable Activity WP-Foro Posts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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