Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#27030 closed enhancement (invalid)

Filtering _get_meta_table

Reported by: losted's profile losted Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.9
Component: Options, Meta APIs Keywords:
Focuses: Cc:

Description

Hello,

I'd like to get a filter to be able to change de table name/format for the function _get_meta_table.

Here's one use case from the buddypress plugin trac :

https://buddypress.trac.wordpress.org/ticket/4551

It could also be used for others and other plugins.

Thanks!

Change History (1)

#1 @nacin
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hi losted. Thanks for the report. I've looked over #buddypress4551. Technically _get_meta_table() requires no filter as it simply reads from the $wpdb object. Simply setting $wpdb->groupmeta will allow _get_meta_table('group') to work.

Note: See TracTickets for help on using tickets.