BP_Nouveau_xProfile
xProfile Loader class
Description
Source
File: bp-templates/bp-nouveau/includes/xprofile/loader.php
class BP_Nouveau_xProfile { /** * Constructor * * @since BuddyPress 3.0.0 */ public function __construct() { $this->setup_globals(); $this->includes(); $this->setup_actions(); $this->setup_filters(); } /** * Globals * * @since BuddyPress 3.0.0 */ protected function setup_globals() { $this->dir = dirname( __FILE__ ); } /** * Include needed files * * @since BuddyPress 3.0.0 */ protected function includes() { require( trailingslashit( $this->dir ) . 'functions.php' ); require( trailingslashit( $this->dir ) . 'template-tags.php' ); } /** * Register do_action() hooks * * @since BuddyPress 3.0.0 */ protected function setup_actions() { add_action( 'bp_nouveau_enqueue_scripts', 'bp_nouveau_xprofile_enqueue_scripts' ); } /** * Register add_filter() hooks * * @since BuddyPress 3.0.0 */ protected function setup_filters() { add_filter( 'bp_nouveau_register_scripts', 'bp_nouveau_xprofile_register_scripts', 10, 1 ); } }
Changelog
Version | Description |
---|---|
BuddyPress 3.0.0 | Introduced. |
Methods
- __construct — Constructor
- includes — Include needed files
- setup_actions — Register do_action() hooks
- setup_filters — Register add_filter() hooks
- setup_globals — Globals
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.