Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save KaineLabs/53ca0142181b123e17bd978b09eb0b08 to your computer and use it in GitHub Desktop.

Select an option

Save KaineLabs/53ca0142181b123e17bd978b09eb0b08 to your computer and use it in GitHub Desktop.
Enable Buddypress Default Status Post Type
<?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