Search Results for 'code'
-
AuthorSearch Results
-
May 23, 2020 at 12:15 pm #211348
In reply to: Last reply author’s name in loop-single-topic?
kasperdalkarl
ParticipantHi there!
Thanks for the help! I added it using Code Snippets, and now the last reply author’s name appears in front of “Started by”, as you can see on this link here: https://www.talanrien.com/rollspel/Maybe with some minor adjustment it could appear in front of “Reply To”. Thanks for your amazing help!
May 23, 2020 at 11:37 am #211345In reply to: Last reply author’s name in loop-single-topic?
Robin W
Moderatorok, they’ve done it by a function by the look of it.
so try this
add_action ('bbp_theme_before_topic_started_by' , 'rew_reply_author' , 10 ) ; function rew_reply_author () { $reply_id = bbp_get_topic_last_reply_id () ; echo '<span class="bbp-reply-author">'.bbp_get_reply_author_link( array( 'post_id' => $reply_id, 'type' => 'both', 'size' => 14 ) ) ; }Put this in your child theme’s function file – or use
then come back and let me know where this appears, we might need to adjust
May 23, 2020 at 11:18 am #211344Robin W
Moderatorjust overwrite your code with the above – that code works
May 23, 2020 at 9:45 am #211339Robin W
Moderatoradd_action( 'bbp_theme_before_reply_form_content', 'rew_additional_field' ); function rew_additional_field($post){ ?> <select name="rew_additional_field" id="rew_additional_field"> <option value="enqury">Enquiry</option> <option value="complaint">Complaint</option> <option value="feedback">Feedback</option> </select> <select name="rew_additional_field_2" id="rew_additional_field_2"> <option value="enqury2">Enquiry2</option> <option value="complaint2">Complaint2</option> <option value="feedback2">Feedback2</option> </select> <?php } add_action('bbp_new_reply_post_extras', 'rew_save_additional_field'); function rew_save_additional_field($reply_id){ global $post; if(isset($_POST["rew_additional_field"])) { update_post_meta ($reply_id, 'rew_additional_field', $_POST["rew_additional_field"]) ; } if(isset($_POST["rew_additional_field_2"])) { update_post_meta ($reply_id, 'rew_additional_field_2', $_POST["rew_additional_field_2"]) ; } } add_action('bbp_theme_before_reply_content', 'rew_show_additional_field'); function rew_show_additional_field () { $reply_id = bbp_get_reply_id(); $field = get_post_meta($reply_id, 'rew_additional_field', true); if (!empty ($field)) { echo "Type: ". ucfirst($field)."<br>"; } $field_2 = get_post_meta($reply_id, 'rew_additional_field_2', true); if (!empty ($field_2)) { echo "Type: ". ucfirst($field_2)."<br>"; } }May 23, 2020 at 9:17 am #211336g28f99
ParticipantBut I found a new problem. I hope more than one selection box will be shown there.
And there will be errors. Could you please kindly suggest solutions?add_action( 'bbp_theme_before_reply_form_content', 'rew_additional_field' ); function rew_additional_field($post){ ?> <select name="rew_additional_field" id="rew_additional_field"> <option value="enqury">Enquiry</option> <option value="complaint">Complaint</option> <option value="feedback">Feedback</option> </select> <select name="rew_additional_field_2" id="rew_additional_field_2"> <option value="enqury2">Enquiry2</option> <option value="complaint2">Complaint2</option> <option value="feedback2">Feedback2</option> </select> <?php } add_action('bbp_new_reply_post_extras', 'rew_save_additional_field'); function rew_save_additional_field($reply_id){ global $post; if(isset($_POST["rew_additional_field"])) { update_post_meta ($reply_id, 'rew_additional_field', $_POST["rew_additional_field"]) ; if(isset($_POST["rew_additional_field_2"])) { update_post_meta ($reply_id, 'rew_additional_field_2', $_POST["rew_additional_field_2"]) ; } } add_action('bbp_theme_before_reply_content', 'rew_show_additional_field'); function rew_show_additional_field () { $reply_id = bbp_get_reply_id(); $field = get_post_meta($reply_id, 'rew_additional_field', true); if (!empty ($field)) { echo "Type: ". ucfirst($field)."<br>"; $field_2 = get_post_meta($reply_id, 'rew_additional_field_2', true); if (!empty ($field_2)) { echo "Type: ". ucfirst($field_2)."<br>"; } }May 23, 2020 at 8:25 am #211333In reply to: Last reply author’s name in loop-single-topic?
kasperdalkarl
ParticipantIt probably comes from the theme I have, it currently looks like this in loop-single-topic:
<div class="nk-forum-title-sub"> <?php $link_url = bbp_get_topic_last_reply_url(); $title = bbp_get_topic_last_reply_title(); ?> <div class="nk-forum-activity-title" title="<?php echo esc_attr($title); ?>"> <a href="<?php echo esc_url($link_url); ?>"><?php echo esc_html($title); ?></a> </div> <div class="nk-forum-activity-date"> <?php do_action('bbp_theme_before_topic_freshness_link'); ?> <?php $time_since = bbp_get_topic_last_active_time(); if (!empty($time_since)) { echo esc_html($time_since); } else { echo esc_html__('No Replies', 'godlike'); } ?> <?php do_action('bbp_theme_after_topic_freshness_link'); ?> </div> <?php do_action('bbp_theme_before_topic_started_by'); ?> <span class="bbp-topic-started-by"><?php printf(esc_html__('Started by %1$s', 'godlike'), bbp_get_topic_author_link(array('type' => 'name')), bbp_get_reply_post_date()); ?></span> <?php do_action('bbp_theme_after_topic_started_by'); ?> <?php if (!bbp_is_single_forum() || (bbp_get_topic_forum_id() !== bbp_get_forum_id())) : ?> <?php do_action('bbp_theme_before_topic_started_in'); ?> <span class="bbp-topic-started-in"><?php printf(__('in: <a href="%1$s">%2$s</a>', 'godlike'), bbp_get_forum_permalink(bbp_get_topic_forum_id()), bbp_get_forum_title(bbp_get_topic_forum_id())); ?></span> <?php do_action('bbp_theme_after_topic_started_in'); ?> <?php endif; ?> </div>May 23, 2020 at 8:12 am #211330Robin W
Moderatoreasier to start again
this works
add_action( 'bbp_theme_before_reply_form_content', 'rew_additional_field' ); function rew_additional_field($post){ ?> <select name="rew_additional_field" id="rew_additional_field"> <option value="enqury">Enquiry</option> <option value="complaint">Complaint</option> <option value="feedback">Feedback</option> </select> <?php } add_action('bbp_new_reply_post_extras', 'rew_save_additional_field'); function rew_save_additional_field($reply_id){ global $post; if(isset($_POST["rew_additional_field"])) { update_post_meta ($reply_id, 'rew_additional_field', $_POST["rew_additional_field"]) ; } } add_action('bbp_theme_before_reply_content', 'rew_show_additional_field'); function rew_show_additional_field () { $reply_id = bbp_get_reply_id(); $field = get_post_meta($reply_id, 'rew_additional_field', true); if (!empty ($field)) { echo "Type: ". ucfirst($field)."<br>"; } }May 23, 2020 at 7:49 am #211328In reply to: User input field change
Robin W
Moderatorquickest way is
add_filter( 'gettext', 'rew_bbpress_translate', 20 , 3 ); function rew_bbpress_translate( $translated, $text, $domain ) { if ($domain == 'bbpress') { $words = array( 'Website' => 'WhatsApp no' ); $translated = str_replace( array_keys($words), $words, $translated ); } return $translated; }Put this in your child theme’s function file – or use
May 23, 2020 at 6:44 am #211326hrithik951
ParticipantWhen using this shortcode- [bbp-topic-form]
It’s working.
There are total 3 files named form-topic.php you would have to remove it from all three to remove (default forum). One is in the Bbpress plugin, other in the theme and one somewhere else (use Search function). It’s on line 128 in all three files if memory serves right.
May 23, 2020 at 3:51 am #211321Robin W
Moderatorok, I’ve ONLY edited this to correct syntax, but try it and then come back
add_action( 'bbp_theme_before_reply_form_content', 'so_additional_content' ); function so_additional_content($post){ $reply_id = bbp_get_reply_id(); $meta_element_class = get_post_meta($reply_id, 'custom_element_grid_class_meta_box', true); //true ensures you get just one value instead of an array echo '<label>Choose the size of the element : </label>' ; ?> <select name="custom_element_grid_class" id="custom_element_grid_class"> <option value="normal" <?php selected( $meta_element_class, 'normal' ); ?>>normal</option> <option value="square" <?php selected( $meta_element_class, 'square' ); ?>>square</option> <option value="wide" <?php selected( $meta_element_class, 'wide' ); ?>>wide</option> <option value="tall" <?php selected( $meta_element_class, 'tall' ); ?>>tall</option> </select>' <?php } add_action('bbp_new_reply_post_extras', 'so_save_metabox'); function so_save_metabox(){ global $post; if(isset($_POST["custom_element_grid_class"])) { //check the capability: if ( !current_user_can( 'edit_post', $post->ID )) return $post->ID; $meta_element_class = $_POST['custom_element_grid_class']; //END OF UPDATE update_post_meta($reply_id, 'custom_element_grid_class_meta_box', $meta_element_class); //print_r($_POST); } } add_action('bbp_theme_before_reply_content', 'so_show_metabox'); function so_show_metabox() { $meta_element_class = get_post_meta($reply_id, 'custom_element_grid_class_meta_box', true); // the problem is "Field 1" appear in every reply post echo "Field 1: ". $meta_element_class."<br>"; }May 22, 2020 at 10:59 pm #211319g28f99
ParticipantThank you, Robin!
I made some corrections and further checked the selection option parts accordingly. I also add a show contents part referring to a workable previous post with link.
The code can provide options for the user to selection. But the selection result could not be shown. I am not sure whether the selection result was added into metabox properly because I can not use the debug function. And another problem is that the “Field 1 ” was inserted into all previous replies.
Could you further provide help to solve this problem?add_action( 'bbp_theme_before_reply_form_content', 'so_additional_content' ); function so_additional_content($post){ $reply_id = bbp_get_reply_id(); $meta_element_class = get_post_meta($reply_id, 'custom_element_grid_class_meta_box', true); //true ensures you get just one value instead of an array ?> echo '<label>Choose the size of the element : </label> <select name="custom_element_grid_class" id="custom_element_grid_class"> <option value="normal" <?php selected( $meta_element_class, 'normal' ); ?>>normal</option> <option value="square" <?php selected( $meta_element_class, 'square' ); ?>>square</option> <option value="wide" <?php selected( $meta_element_class, 'wide' ); ?>>wide</option> <option value="tall" <?php selected( $meta_element_class, 'tall' ); ?>>tall</option> </select>' <?php } add_action('bbp_new_reply_post_extras', 'so_save_metabox'); function so_save_metabox(){ global $post; if(isset($_POST["custom_element_grid_class"])) { //check the capability: if ( !current_user_can( 'edit_post', $post->ID )) return $post->ID; $meta_element_class = $_POST['custom_element_grid_class']; //END OF UPDATE update_post_meta($reply_id, 'custom_element_grid_class_meta_box', $meta_element_class); //print_r($_POST); } } add_action('bbp_theme_before_reply_content', 'so_show_metabox'); function so_show_metabox() { $meta_element_class = get_post_meta($reply_id, 'custom_element_grid_class_meta_box', true); // the problem is "Field 1" appear in every reply post echo "Field 1: ". $meta_element_class."<br>"; }May 22, 2020 at 10:23 am #211306In reply to: Imported Topics are blank
Robin W
Moderator1. Download the plugin from this url :
Then upload to your site and activate3. Create a page called anything and put this shortcode in it
[fix-topics]
and publish4. Go to this page and you will see a drop down, use the drop down to select ‘run’ and click submit
That should do it
May 22, 2020 at 9:50 am #211298In reply to: Anonymous Profile in Tool Bar
Pete
ParticipantThanks again @robin-w. Yes, I saw that one. That does work as long as the text that’s being replaced is ‘Howdy’. but that’s language dependent. Down here, if your site is configured for Australia, it’s ‘G’day’ and in other countries I imagine it’s something different again (and that code works as long as you specify the exact string that you need to replace).
I was actually wanting to get rid of that text altogether, in a language-independent way, so I was hoping that it had a ‘name’, like ‘wp-user-greeting’ or something that you could just do a $wp_adminbar->remove_node on, but it sounds like this is not the case. Is the format of the username/avitar on the admin-bar on this site, where there’s no ‘prefix’ at all, really hard coded (rather than managed through something like a function)?
I am making progress with the code (to identify a user as anonymous before they log in) from your previous response, so thanks again for that, but I’m modifying files that are bound to be replaced with the next WordPress/bbPress update. There must surely be some ‘version independent’ way of doing this…
May 22, 2020 at 7:21 am #211289In reply to: How do I enqueue the custom css?
Robin W
Moderatoryou can only enqueue a style name once, so suggest you rename the second child one eg
wp_enqueue_style( 'child-theme-css', get_stylesheet_directory_uri() .'/style.css' , array('parent-style')); wp_enqueue_style( 'child-theme-bbpress-css', get_stylesheet_directory_uri() .'/css/bbpress.css', array());that might be the problem, if not, it certainly isn’t helping
May 22, 2020 at 5:32 am #211285In reply to: Anonymous Profile in Tool Bar
Robin W
ModeratorHaven’t tested but googled and found this
add_filter( 'admin_bar_menu', 'replace_wordpress_howdy', 25 ); function replace_wordpress_howdy( $wp_admin_bar ) { $my_account = $wp_admin_bar->get_node('my-account'); $newtext = str_replace( 'Howdy,', 'Welcome,', $my_account->title ); $wp_admin_bar->add_node( array( 'id' => 'my-account', 'title' => $newtext, ) ); }Put this in your child theme’s function file – or use
May 22, 2020 at 3:05 am #211280In reply to: BBPress looking strange
danielthorpe
ParticipantThanks, tried it and it is better.
Here is a test page:
https://eliteguitarist.net/forums/
I can
t get the users avatar to show up bigger, and Id like to remove the “home” button, “viewing topic” text, remove the “create a new topic” button, make the box where they type in smaller and remove the section at the bottom where it says “You may use these HTML tags and attributes:”Sorry, that`s a lot. Is this all possible using the plugin?
May 22, 2020 at 2:58 am #211278In reply to: Anonymous Profile in Tool Bar
Robin W
Moderatorthe bbpress theme that this site uses is here
the following file holds the code
but you will also need to pull through some css from the theme, and JavaScript to do the drop downs
then tie all this back to the right place in your theme.
It’s quite doable, but well beyond free help
May 21, 2020 at 5:05 pm #211269Topic: How do I enqueue the custom css?
in forum Installationfailxontour
ParticipantHey so I’m trying to enqueue custom CSS for bbPress v2.6.4 on the WP 5.4.1 clan website running a WP Twenty Twenty-child theme.
This is what my functions.php currently looks like
<?php /** * Child theme stylesheet einbinden in Abhängigkeit vom Original-Stylesheet */ add_action( 'wp_enqueue_scripts', 'child_theme_styles' ); function child_theme_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-theme-css', get_stylesheet_directory_uri() .'/style.css' , array('parent-style')); wp_enqueue_style( 'child-theme-css', get_stylesheet_directory_uri() .'/css/bbpress.css', array()); } ?>And this is how my bbpress.css looks like.
#bbp-forum-info, #bbp-forum-topic-count, #bbp-forum-reply-count, #bbp-forum-freshness { color: #232323; } #bbpress-forums { background: transparent; clear: both; margin-bottom: 20px; overflow: hidden; font-size: 1.75rem; color: #232323; }The changes I applied in the bbpress.css won’t update the bbpress CSS on the above mentioned site. So their must be something wrong with my functions.php but I can’t yet put my finger on it how to load it properly as I’m pretty new when it comes to WordPress. I wanna append these changes globally to all parts of bbPress forum.
Can someone tell me to if and what i need to specify inside the arrray() call for the bbpress.css to load properly? Or hint me towards what’s wrong here.
May 21, 2020 at 1:33 pm #211265Robin W
Moderatormeta boxes are used in the backend, but you are most of the way there.
so to add the dropdown you can use
add_action(‘bbp_theme_before_reply_content’, ‘so_additional_content’);(there is a bbp_theme_after_reply_content action as well)
and then in the function put the drop down stuff – I’ve not checked your code, so you’ll need to tidy and correct the following if it doesn’t work
so
function so_additional_content () { ?> <label>Choose the size of the element : </label> <select name=”custom_element_grid_class” id=”custom_element_grid_class”> <option value=”normal” <?php selected( $meta_element_class, ‘normal’ ); ?>>normal</option> <option value=”square” <?php selected( $meta_element_class, ‘square’ ); ?>>square</option> <option value=”wide” <?php selected( $meta_element_class, ‘wide’ ); ?>>wide</option> <option value=”tall” <?php selected( $meta_element_class, ‘tall’ ); ?>>tall</option> </select> <?php }Then when the user presses submit a function in bbpress called ‘new reply handler’ takes over.
that has a hook
do_action( ‘bbp_new_reply_post_extras’, $reply_id );
which you can link to, to do the save.
so you would have
add_action ( 'bbp_new_reply_post_extras' , 'so_save' ) ; function so-save ($reply_id) { $meta_element_class = $_POST[‘custom_element_grid_class’]; update_post_meta($reply_id, ‘custom_element_grid_class_meta_box’, $meta_element_class); }again your code is not checked.
you will need to add functionality if you want users to edit their replies and change the dropdown selection
I’ll let you play with the above, and do come back with a first version if you need extra help.
If you fix it, then PLEASE post your solution here to help others
May 21, 2020 at 10:04 am #211262g28f99
ParticipantI hope to customize bbpress reply form area with dropdown selection list. I could not find any previous post reporting similar case in bbpress. Referring to post “Save meta box data from selected dropdown list” with link I prepared similar code for the bbpress reply post condition, but failed to achieve the goal.
Please kindly provide suggestions!` add_action( ‘bbp_theme_before_reply_form_content’, ‘so_custom_meta_box’ );
//add_action( ‘add_meta_boxes’, ‘so_custom_meta_box’ );function so_custom_meta_box($post){
add_meta_box(‘so_meta_box’, ‘Custom Box’, ‘custom_element_grid_class_meta_box’, $post->post_type, ‘normal’ , ‘high’);
}add_action(‘bbp_theme_before_reply_content’, ‘so_save_metabox’);
function so_save_metabox(){
global $post;
if(isset($_POST[“custom_element_grid_class”])){
//UPDATE:
$meta_element_class = $_POST[‘custom_element_grid_class’];
//END OF UPDATEupdate_post_meta($reply_id, ‘custom_element_grid_class_meta_box’, $meta_element_class);
//print_r($_POST);
}
}
function custom_element_grid_class_meta_box($post){
$reply_id = bbp_get_reply_id();
$meta_element_class = get_post_meta($reply_id, ‘custom_element_grid_class_meta_box’, true); //true ensures you get just one value instead of an array
?>
<label>Choose the size of the element : </label><select name=”custom_element_grid_class” id=”custom_element_grid_class”>
<option value=”normal” <?php selected( $meta_element_class, ‘normal’ ); ?>>normal</option>
<option value=”square” <?php selected( $meta_element_class, ‘square’ ); ?>>square</option>
<option value=”wide” <?php selected( $meta_element_class, ‘wide’ ); ?>>wide</option>
<option value=”tall” <?php selected( $meta_element_class, ‘tall’ ); ?>>tall</option>
</select>
<?php
}May 21, 2020 at 6:44 am #211250In reply to: Editing the ‘Oh bother!’ Message
Robin W
ModeratorPut this in your child theme’s function file – or use
//This function changes the text wherever it is quoted function change_translate_text( $translated_text ) { if ( $translated_text == 'old text' ) { $translated_text = 'new text'; } return $translated_text; } add_filter( 'gettext', 'change_translate_text', 20 );and change the old text and new text to suit.
May 21, 2020 at 5:52 am #211241Robin W
Moderatorok, let’s try adding this
add_filter( 'bbp_verify_nonce_request_url', 'my_bbp_verify_nonce_request_url', 999, 1 ); function my_bbp_verify_nonce_request_url( $requested_url ) { return 'http://localhost:8888' . $_SERVER['REQUEST_URI']; }Put this in your child theme’s function file – or use
May 21, 2020 at 3:31 am #211225In reply to: Adding roles
Robin W
Moderatorhttps://codex.bbpress.org/custom-capabilities/ is a better way, as updates to bbpress don’t overwrite, but as long as you know that bbpress updates will need you to go back into those files.
May 20, 2020 at 11:56 pm #211222In reply to: How can I fully remove this plugin?
thomasprice61
ParticipantI also followed this: https://codex.bbpress.org/getting-started/installing-bbpress/deleting-bbpress/
and get the same fatal error:Fatal error: Uncaught Error: Cannot unset string offsets
in /hsphere/local/home/audax/dev1.audax.org.au/wp-includes/class-wp-role.php on line 75Call stack:
WP_Role::remove_cap()
wp-content/plugins/bbpress/includes/core/capabilities.php:240
bbp_remove_caps()
wp-content/plugins/bbpress/includes/admin/tools/reset.php:262
bbp_admin_reset_database()
wp-content/plugins/bbpress/includes/admin/tools/reset.php:100
bbp_admin_reset_handler()
wp-includes/class-wp-hook.php:287
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:311
WP_Hook::do_action()
wp-includes/plugin.php:478
do_action()
wp-admin/admin.php:232
require_once()
wp-admin/tools.php:40May 20, 2020 at 6:11 pm #211220In reply to: Adding roles
zirow
ParticipantI’ve added this reply like 3times and everytime i edit it it disappeared and when i try to re-paste it and submit i cant cuz i get a warning for duplication 😛
I’m pretty sure theirs a better way of doing it but that’s how I did since its the only way I could figure it out
Open Capabilities.php
Under “function bbp_get_caps_for_role”
Add this case along with the other casescase bbp_get_tutor_role() :
$caps = array(// Primary caps
‘spectate’ => true,
‘participate’ => true,// Forum caps
‘read_private_forums’ => true,// Topic caps
‘publish_topics’ => true,
‘edit_topics’ => true,// Reply caps
‘publish_replies’ => true,
‘edit_replies’ => true,// Topic tag caps
‘assign_topic_tags’ => true,
);Under:
function bbp_get_participant_role() {
// Filter & return
return apply_filters( ‘bbp_get_participant_role’, ‘bbp_participant’ );
}Add:
function bbp_get_tutor_role() {
// Filter & return
return apply_filters( ‘bbp_get_tutor_role’, ‘bbp_tutor’ );
}Save and close Capabilities.php and open bbpress.php in the plugin directory not the one inside the theme.
Search for:
public function roles_init() {You will see this code:
$keymaster = bbp_get_keymaster_role();
$moderator = bbp_get_moderator_role();
$participant = bbp_get_participant_role();
$spectator = bbp_get_spectator_role();
$blocked = bbp_get_blocked_role();// Build the roles into one useful array
$this->roles[ $keymaster ] = new WP_Role( ‘Keymaster’, bbp_get_caps_for_role( $keymaster ) );$this->roles[ $moderator ] = new WP_Role( ‘Moderator’, bbp_get_caps_for_role( $moderator ) );
$this->roles[ $participant ] = new WP_Role( ‘Participant’, bbp_get_caps_for_role( $participant ) );
$this->roles[ $spectator ] = new WP_Role( ‘Spectator’, bbp_get_caps_for_role( $spectator ) );
$this->roles[ $blocked ] = new WP_Role( ‘Blocked’, bbp_get_caps_for_role( $blocked ) );
}So you just want to add these two codes in their:
$tutor = bbp_get_tutor_role();
$this->roles[ $tutor ] = new WP_Role( ‘tutor’, bbp_get_caps_for_role( $tutor ) );
If u want to rename an existing role u added or bbpress default roles u can add this into your functions.php
Add:
function ntwb_bbpress_custom_role_names() {
return array(
// Keymaster
bbp_get_keymaster_role() => array(
‘name’ => ‘Administrator’,
‘capabilities’ => bbp_get_caps_for_role( bbp_get_keymaster_role() )
),
// Moderator
bbp_get_moderator_role() => array(
‘name’ => ‘Moderator’,
‘capabilities’ => bbp_get_caps_for_role( bbp_get_moderator_role() )
),
// Participant
bbp_get_participant_role() => array(
‘name’ => ‘Member’,
‘capabilities’ => bbp_get_caps_for_role( bbp_get_participant_role() )
),
bbp_get_tutor_role() => array(
‘name’ => ‘Member2’,
‘capabilities’ => bbp_get_caps_for_role( bbp_get_tutor_role() )
),
// Spectator
bbp_get_spectator_role() => array(
‘name’ => ‘Spectator’,
‘capabilities’ => bbp_get_caps_for_role( bbp_get_spectator_role() )
),
// Blocked
bbp_get_blocked_role() => array(
‘name’ => ‘Blocked’,
‘capabilities’ => bbp_get_caps_for_role( bbp_get_blocked_role() )
)
);
}
-
AuthorSearch Results