[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

/src/includes/admin/ -> common.php (summary)

bbPress Admin Functions

File Size: 185 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions

  bbp_admin_separator()
  bbp_admin_custom_menu_order()
  bbp_admin_menu_order()
  bbp_sanitize_slug()
  bbp_do_uninstall()
  bbp_tools_modify_menu_highlight()

Functions
Functions that are not part of a class:

bbp_admin_separator()   X-Ref
Add a separator to the WordPress admin menus

since: 2.0.0 bbPress (r2957)

bbp_admin_custom_menu_order( $menu_order = false )   X-Ref
Tell WordPress we have a custom menu order

since: 2.0.0 bbPress (r2957)
return: mixed True if separator, false if not
param: bool $menu_order Menu order

bbp_admin_menu_order( $menu_order )   X-Ref
Move our custom separator above our custom post types

since: 2.0.0 bbPress (r2957)
return: array Modified menu order
param: array $menu_order Menu Order

bbp_sanitize_slug( $slug = '' )   X-Ref
Sanitize permalink slugs when saving the settings page.

since: 2.6.0 bbPress (r5364)
return: string
param: string $slug

bbp_do_uninstall( $site_id = 0 )   X-Ref
Uninstall all bbPress options and capabilities from a specific site.

since: 2.1.0 bbPress (r3765)
param: int $site_id

bbp_tools_modify_menu_highlight()   X-Ref
This tells WP to highlight the Tools > Forums menu item,
regardless of which actual bbPress Tools screen we are on.

The conditional prevents the override when the user is viewing settings or
any third-party plugins.

since: 2.1.0 bbPress (r3888)



Generated: Mon Dec 9 01:01:26 2019 Cross-referenced by PHPXref 0.7.1