Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function customize_lesson_tracking_args() {
- if ( ! bp_is_active( 'activity' ) )
- return;
- add_post_type_support( 'sfwd-courses', 'buddypress-activity' );
- bp_activity_set_post_type_tracking_args( 'sfwd-courses', array(
- 'action_id' => 'new_sfwd-courses',
- 'bp_activity_admin_filter' => __( 'Published a new Course', 'custom-textdomain' ),
- 'bp_activity_front_filter' => __( 'Course', 'custom-textdomain' ),
- 'bp_activity_new_post' => __( '%1$s posted a new <a href="%2$s">Course</a>', 'custom-textdomain' ),
- 'bp_activity_new_post_ms' => __( '%1$s posted a new <a href="%2$s">Course</a>, on the site %3$s', 'custom-textdomain' ),
- 'contexts' => array( 'activity', 'member' ),
- 'comment_action_id' => 'new_sfwd-courses_comment',
- 'bp_activity_comments_admin_filter' => __( 'Commented a Course', 'custom-textdomain' ),
- 'bp_activity_comments_front_filter' => __( 'Course Comments', 'custom-textdomain' ),
- 'bp_activity_new_comment' => __( '%1$s commented on the <a href="%2$s">Course</a>', 'custom-textdomain' ),
- 'bp_activity_new_comment_ms' => __( '%1$s commented on the <a href="%2$s">Course</a>, on the site %3$s', 'custom-textdomain' ),
- 'position' => 100,
- ) );
- }
- add_action( 'bp_init', 'customize_lesson_tracking_args' );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement