SHARE
TWEET

Untitled

a guest Jul 26th, 2016 25 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. function customize_lesson_tracking_args() {
  3.  
  4.     if ( ! bp_is_active( 'activity' ) )
  5.         return;
  6.  
  7.     add_post_type_support( 'sfwd-courses', 'buddypress-activity' );
  8.  
  9.     bp_activity_set_post_type_tracking_args( 'sfwd-courses', array(
  10.         'action_id'                         => 'new_sfwd-courses',
  11.         'bp_activity_admin_filter'          => __( 'Published a new Course', 'custom-textdomain' ),
  12.         'bp_activity_front_filter'          => __( 'Course', 'custom-textdomain' ),
  13.         'bp_activity_new_post'              => __( '%1$s posted a new <a href="%2$s">Course</a>', 'custom-textdomain' ),
  14.         'bp_activity_new_post_ms'           => __( '%1$s posted a new <a href="%2$s">Course</a>, on the site %3$s', 'custom-textdomain' ),
  15.         'contexts'                          => array( 'activity', 'member' ),
  16.         'comment_action_id'                 => 'new_sfwd-courses_comment',
  17.         'bp_activity_comments_admin_filter' => __( 'Commented a Course', 'custom-textdomain' ),
  18.         'bp_activity_comments_front_filter' => __( 'Course Comments', 'custom-textdomain' ),
  19.         'bp_activity_new_comment'           => __( '%1$s commented on the <a href="%2$s">Course</a>', 'custom-textdomain' ),
  20.         'bp_activity_new_comment_ms'        => __( '%1$s commented on the <a href="%2$s">Course</a>, on the site %3$s', 'custom-textdomain' ),
  21.         'position'                          => 100,
  22.     ) );
  23. }
  24. add_action( 'bp_init', 'customize_lesson_tracking_args' );
  25. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top