Created
October 29, 2019 23:37
-
-
Save KaineLabs/53ca0142181b123e17bd978b09eb0b08 to your computer and use it in GitHub Desktop.
Enable Buddypress Default Status Post Type
This file contains hidden or 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 | |
| /** | |
| * Activity status | |
| */ | |
| function yzc_activity_state_add_show_everything_filter_actions( $actions ) { | |
| $actions[] = 'activity_status'; | |
| return $actions; | |
| } | |
| add_filter( 'yz_wall_show_everything_filter_actions', 'yzc_activity_state_add_show_everything_filter_actions' ); | |
| /** | |
| * Enable Activity status Posts Visibility. | |
| */ | |
| function yz_enable_state_activity_posts( $post_types ) { | |
| $post_types['activity_status'] = 'on'; | |
| return $post_types; | |
| } | |
| add_filter( 'yz_wall_post_types_visibility','yz_enable_state_activity_posts' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment