Skip to:
Content

bbPress.org

Opened 18 years ago

Closed 18 years ago

Last modified 20 months ago

#648 closed enhancement (worksforme)

bb info added to wp_options for wp plugins

Reported by: fel64's profile fel64 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General - Integration Keywords:
Cc:

Description

It would be incredibly invaluable if things like the bb table prefix, bb siteurl and path could be automatically added to wp_options; that way a WP plugin could get all that info with no difficulty. Right now every WP plugin has to request the user to enter all that info and it's a bit silly.

Change History (4)

#1 @sambauers
18 years ago

Could this task be done with a plugin itself? It's a fairly expensive process. The WP options functions have lots of hooks that can be used to achieve this.

#2 @fel64
18 years ago

It only needs to be done on install, and only if you're integrating properly. You can't rely on people having the extra 'meta'-plugin to do this or that plugin authors would use it.

What do you mean with the lots of hooks thing?

Every plugin that furthers the integration, like the users plugin by mdawaffe, the bbPress Latest Discussions by Atsutane and the bbPress Post plugin by mbyte, need this info. Having one extra record in the table is trivial, as is writing it when bb is installed.

#3 @mdawaffe
18 years ago

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

You can access path, domain, url, etc. with bb_get_option() already.

var_dump(bb_get_option( 'url' ));

Please reopen if I've misunderstood.

#4 @mdawaffe
18 years ago

(In [834]) access table prefix from bb_get_option(). re #648

Note: See TracTickets for help on using tickets.