Forked from KaineLabs/yz_enable_wpforo_activity_posts.php
Created
May 5, 2021 14:54
-
-
Save seancojr/32e4203d998f07dff87e3cd54f62da62 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