PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.2.0
Forumax – AI Powered Advanced Community Forum Plugin v2.2.0
2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 trunk 1.0.8 1.1.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 2.0.0 2.1.0 All 29 releases
← All changes | includes/features/bbpc_attachments/code/shared.php +17 -17 1.2.92.2.0 View file →
@@ -16,10 +16,10 @@
16 16 }
17 17 }
18 18 }
19 19
20 -if ( ! function_exists( 'bbpc_bbpress_get_user_roles' ) ) {
21 - function bbpc_bbpress_get_user_roles() {
20 +if ( ! function_exists( 'forumax_bbpress_get_user_roles' ) ) {
21 + function forumax_bbpress_get_user_roles() {
22 22 $roles = [];
23 23
24 24 $dynamic_roles = bbp_get_dynamic_roles();
25 25
@@ -30,10 +30,10 @@
30 30 return $roles;
31 31 }
32 32 }
33 33
34 -if ( ! function_exists( 'bbpc_has_bbpress' ) ) {
35 - function bbpc_has_bbpress() {
34 +if ( ! function_exists( 'forumax_has_bbpress' ) ) {
35 + function forumax_has_bbpress() {
36 36 if ( function_exists( 'bbp_version' ) ) {
37 37 $version = bbp_get_version();
38 38 $version = intval( substr( str_replace( '.', '', $version ), 0, 2 ) );
39 39
@@ -43,11 +43,11 @@
43 43 }
44 44 }
45 45 }
46 46
47 -if ( ! function_exists( 'bbpc_bbpress_version' ) ) {
48 - function bbpc_bbpress_version( $ret = 'code' ) {
49 - if ( ! bbpc_has_bbpress() ) {
47 +if ( ! function_exists( 'forumax_bbpress_version' ) ) {
48 + function forumax_bbpress_version( $ret = 'code' ) {
49 + if ( ! forumax_has_bbpress() ) {
50 50 return null;
51 51 }
52 52
53 53 $version = bbp_get_version();
@@ -63,18 +63,18 @@
63 63 return null;
64 64 }
65 65 }
66 66
67 -if ( ! function_exists( 'bbpc_is_bbpress' ) ) {
68 - function bbpc_is_bbpress() {
69 - $is = bbpc_has_bbpress() ? is_bbpress() : false;
67 +if ( ! function_exists( 'forumax_is_bbpress' ) ) {
68 + function forumax_is_bbpress() {
69 + $is = forumax_has_bbpress() ? is_bbpress() : false;
70 70
71 - return apply_filters( 'bbpc_is_bbpress', $is );
71 + return apply_filters( 'forumax_is_bbpress', $is );
72 72 }
73 73 }
74 74
75 -if ( ! function_exists( 'bbpc_is_user_moderator' ) ) {
76 - function bbpc_is_user_moderator() {
75 +if ( ! function_exists( 'forumax_is_user_moderator' ) ) {
76 + function forumax_is_user_moderator() {
77 77 global $current_user;
78 78
79 79 if ( is_array( $current_user->roles ) ) {
80 80 return in_array( 'bbp_moderator', $current_user->roles );
@@ -83,10 +83,10 @@
83 83 }
84 84 }
85 85 }
86 86
87 -if ( ! function_exists( 'bbpc_is_user_admin' ) ) {
88 - function bbpc_is_user_admin() {
87 +if ( ! function_exists( 'forumax_is_user_admin' ) ) {
88 + function forumax_is_user_admin() {
89 89 global $current_user;
90 90
91 91 if ( is_array( $current_user->roles ) ) {
92 92 return in_array( 'administrator', $current_user->roles );
@@ -95,10 +95,10 @@
95 95 }
96 96 }
97 97 }
98 98
99 -if ( ! function_exists( 'bbpc_url_campaign_tracking' ) ) {
100 - function bbpc_url_campaign_tracking( $url, $campaign = '', $medium = '', $content = '', $term = '', $source = null ) {
99 +if ( ! function_exists( 'forumax_url_campaign_tracking' ) ) {
100 + function forumax_url_campaign_tracking( $url, $campaign = '', $medium = '', $content = '', $term = '', $source = null ) {
101 101 if ( ! empty( $campaign ) ) {
102 102 $url = add_query_arg( 'utm_campaign', $campaign, $url );
103 103 }
104 104