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_Default::setup_actions()
Setup the theme hooks
Description
Source
File: bp-forums/templates/default/bbpress-functions.php
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | private function setup_actions() { /** Scripts ***********************************************************/ add_action( 'bbp_enqueue_scripts' , array ( $this , 'enqueue_scripts' ) ); // Enqueue theme JS add_filter( 'bbp_enqueue_scripts' , array ( $this , 'localize_topic_script' ) ); // Enqueue theme script localization add_action( 'bbp_ajax_favorite' , array ( $this , 'ajax_favorite' ) ); // Handles the topic ajax favorite/unfavorite add_action( 'bbp_ajax_subscription' , array ( $this , 'ajax_subscription' ) ); // Handles the topic ajax subscribe/unsubscribe add_action( 'bbp_ajax_forum_subscription' , array ( $this , 'ajax_forum_subscription' ) ); // Handles the forum ajax subscribe/unsubscribe /** Template Wrappers *************************************************/ add_action( 'bbp_before_main_content' , array ( $this , 'before_main_content' ) ); // Top wrapper HTML add_action( 'bbp_after_main_content' , array ( $this , 'after_main_content' ) ); // Bottom wrapper HTML /** Override **********************************************************/ do_action_ref_array( 'bbp_theme_compat_actions' , array ( & $this ) ); } |
Changelog
Version | Description |
---|---|
bbPress (r3732) | 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.