Skip to content
  • This project
    • Loading...
  • Sign in

Commonwell / broker-site

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • broker-site
  • ..
  • Service
  • Editing.php
  • Jeremy Groot's avatar
    plugin updates · 254fa1fa
    254fa1fa Browse Files
    Jeremy Groot committed 2023-07-11 10:35:03 -0400
Editing.php 396 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<?php

namespace ACA\BbPress\Service;

use AC\Registerable;

class Editing implements Registerable {

	public function register() {
		add_filter( 'ac/editing/role_group', [ $this, 'editing_role_group' ], 10, 2 );
	}

	public function editing_role_group( $group, $role ) {
		if ( strpos( $role, "bbp_" ) === 0 ) {
			$group = __( 'bbPress', 'codepress-admin-columns' );
		}

		return $group;
	}

}