Changeset 13431 for trunk/src/bp-core/classes/class-bp-component.php
- Timestamp:
- 02/24/2023 09:37:44 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-component.php
r13422 r13431 543 543 add_action( 'bp_register_post_types', array( $this, 'register_post_types' ), 10 ); 544 544 545 // Register post statuses. 546 add_action( 'bp_register_post_statuses', array( $this, 'register_post_statuses' ), 10 ); 547 545 548 // Register taxonomies. 546 549 add_action( 'bp_register_taxonomies', array( $this, 'register_taxonomies' ), 10 ); … … 856 859 */ 857 860 do_action( 'bp_' . $this->id . '_register_post_types' ); 861 } 862 863 /** 864 * Set up the component post statuses. 865 * 866 * @since 12.0.0 867 */ 868 public function register_post_statuses() { 869 870 /** 871 * Fires in the `register_post_statuses` method inside BP_Component. 872 * 873 * This is a dynamic hook that is based on the component string ID. 874 * 875 * @since 12.0.0 876 */ 877 do_action( 'bp_' . $this->id . '_register_post_statuses' ); 858 878 } 859 879
Note: See TracChangeset
for help on using the changeset viewer.