Skip to:

Opened 6 years ago

Last modified 5 years ago

#7151 closed enhancement

Move `'bp_register_post_types'` and `'bp_register_taxonomies'` hooks before`'bp_core_set_uri_globals'` — at Version 1

Reported by: r-a-y Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version: 2.2
Component: Core Keywords: has-patch commit

Description (last modified by r-a-y)

Split from #7138, we should preferably move our 'bp_register_post_types' and 'bp_register_taxonomies' hooks before bp_core_set_uri_globals() is run.

Currently, bp_core_set_uri_globals() runs on 'bp_init' at priority 2 and the two other hooks run at priority 3.

Attached patch does two things:

  • Sets the priority of 'bp_register_post_types' and 'bp_register_taxonomies' to 2 and called just before the 'bp_core_set_uri_globals' hook.
  • Replaces add_action( 'bp_loaded', 'bp_register_member_types', 8 ); with add_action( 'bp_register_taxonomies', 'bp_register_member_types' ); to be more inline with our existing 'bp_register_taxonomies' hook.

Change History (2)

6 years ago

#1 @r-a-y
6 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.