Completed
Push — dev/5.7.0 ( 2f6e27...2c65c4 )
by Sudar
04:55 queued 01:24
created

Bulk_Delete_Users   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 14
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A delete_users_by_role() 0 4 1
1
<?php
2
/**
3
 * Deprecated Class.
4
 * It is still hear for compatibility reasons and most probably will be removed in v6.0.
5
 *
6
 * @author     Sudar
7
 *
8
 * @package    BulkDelete\Deprecated
9
 */
10
defined( 'ABSPATH' ) || exit; // Exit if accessed directly
11
12
class Bulk_Delete_Users {
13
	/**
14
	 * Wire up proper class for backward compatibility.
15
	 *
16
	 * @since 5.5
17
	 *
18
	 * @param mixed $delete_options
19
	 */
20
	public static function delete_users_by_role( $delete_options ) {
21
		$factory = Bulk_Delete_Users_By_User_Role::factory();
22
23
		return $factory->delete( $delete_options );
24
	}
25
}
26