bbp_admin_setting_callback_user_favs_slug

Favorites slug setting field.

Description

bbp_admin_setting_callback_user_favs_slug(); 

Usage

  1. if ( !function_exists( 'bbp_admin_setting_callback_user_favs_slug' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/admin/settings.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_admin_setting_callback_user_favs_slug(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/admin/settings.php  
  1. function bbp_admin_setting_callback_user_favs_slug() { 
  2. ?> 
  3.  
  4. <input name="_bbp_user_favs_slug" id="_bbp_user_favs_slug" type="text" class="regular-text code" value="<?php bbp_form_option( '_bbp_user_favs_slug', 'favorites', true ); ?>"<?php bbp_maybe_admin_setting_disabled( '_bbp_user_favs_slug' ); ?> /> 
  5.  
  6. <?php 
  7. // Slug Check 
  8. bbp_form_slug_conflict_check( '_bbp_reply_archive_slug', 'favorites' );