This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
BBP_Component::setup_actions()
Setup the actions
Description
Source
File: bp-forums/common/classes.php
private function setup_actions() { add_action( 'bbp_register_post_types', array( $this, 'register_post_types' ), 10, 2 ); // Register post types add_action( 'bbp_register_taxonomies', array( $this, 'register_taxonomies' ), 10, 2 ); // Register taxonomies add_action( 'bbp_add_rewrite_tags', array( $this, 'add_rewrite_tags' ), 10, 2 ); // Add the rewrite tags add_action( 'bbp_generate_rewrite_rules', array( $this, 'generate_rewrite_rules' ), 10, 2 ); // Generate rewrite rules // Additional actions can be attached here do_action( 'bbp_' . $this->name . 'setup_actions' ); }
Changelog
Version | Description |
---|---|
bbPress (r2700) | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.