Skip to:
Content

BuddyPress.org

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#3495 closed enhancement (wontfix)

missing hook in bp_core_admin_page_options()

Reported by: gordielachance's profile gordie.lachance Owned by:
Milestone: 1.5 Priority: normal
Severity: normal Version:
Component: Administration Keywords:
Cc:

Description

There should be a hook in bp_core_admin_page_options() to be able to add custom sections for plugins.

Change History (3)

#1 @gordie.lachance
13 years ago

  • Version set to 1.5

#2 @boonebgorges
13 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

We don't have a hook on that page because plugins automatically appear on this list when they are registered in the proper way. See #3474. Do one of the following to ensure that your plugin appears on that list:

  • Modify your plugin so that it extends the BP_Component class, making sure to set has_directory as true
  • Register your plugin as requiring a top-level directory with bp_core_add_root_component()
  • If all else fails, you can manually add yourself to the $bp->loaded_components global, and also make sure that $bp->{component}->has_directory is set. (I don't recommend this third way - the other two methods will accomplish the same thing in a more future-proof way.)

We would like to enforce these methods for requiring top-level directory pages, because if you manually add a dropdown to the Pages panel, your component will not be properly integrated with the rest of the bp-pages infrastructure (for example, the admin notices that appear when pages are not properly associated).

#3 @johnjamesjacoby
13 years ago

  • Milestone changed from Awaiting Review to 1.5
  • Version 1.5 deleted

Moving closed ticket out of Awaiting Review.

Note: See TracTickets for help on using tickets.