LLMS_Integration_Buddypress::endpoint_content( string $ep_key, Callable $ep_template_cb )
Callback for endpoint profile content.
Parameters Parameters
- $ep_key
-
(string) (Required) The endpoint's key being processed.
- $ep_template_cb
-
(Callable) (Required) The endpoint's template callback.
Return Return
(void)
Source Source
File: includes/integrations/class.llms.integration.buddypress.php
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 | public function endpoint_content( $ep_key , $ep_template_cb ) { // Store what endpoint key we're processing. $this ->current_endpoint_key = $ep_key ; // Enqueue scripts. add_action( 'wp_enqueue_scripts' , array ( $this , 'enqueue_assets' ), 20 ); // Prevent paginate links alteration performed in includes/functions/llms.functions.templates.dashboard.php. add_filter( 'llms_modify_dashboard_pagination_links_disable' , '__return_true' , 999 ); // Add specific paginate links filter. add_filter( 'paginate_links' , array ( $this , 'modify_paginate_links' ) ); add_action( 'bp_template_content' , $ep_template_cb ); // Remove specific paginate links filter after the template has been rendered. add_action( 'bp_template_content' , array ( $this , 'remove_paginate_links_filter' ), 15 ); // This triggers 'bp_template_content' action hook. bp_core_load_template( apply_filters( 'bp_core_template_plugin' , 'members/single/plugins' ) ); } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.3.0 | Introduced. |