WordPress and buddypress programming

Change “Activity” component’s name and slug to something else

Viewing 0 reply threads
  • Author
    Posts
    • #1858
      michael mc
      Keymaster
      @michael

      #buddypress

      Want to change the default BuddyPress “Activity” (activity stream) to “Dashboard”, or “The Activity Center”, or anything other than “Activity”?

      Here is how:

      Create wp-content/plugins/bp-custom.php, and put the following:

      // change BP /activity/ slug to /dashboard/
      define( 'BP_ACTIVITY_SLUG', 'dashboard' );
       
      // Change the name for the "Activity" tab to "Dashboard", 
      // and reference the newly defined slug /dashboard/
      function bpcodex_rename_profile_tabs() {
          // Change "Activity" to "Dashboard"
          buddypress()->members->nav->edit_nav( array( 'name' => __( 'Dashboard', 'textdomain' ) ), 'dashboard' );
      }
      add_action( 'bp_actions', 'bpcodex_rename_profile_tabs' );
Viewing 0 reply threads
  • You must be logged in to reply to this topic.