LLMS_Integration_Buddypress::enqueue_assets()
Enqueue assets specific for the profile endpoints.
Return Return
(void)
Source Source
File: includes/integrations/class.llms.integration.buddypress.php
public function enqueue_assets() { if ( empty( $this->current_endpoint_key ) ) { return; } if ( 'view-achievements' === $this->current_endpoint_key ) { // The iziModal is needed by the achievements endpoint. llms()->assets->enqueue_style( 'llms-iziModal' ); llms()->assets->enqueue_script( 'llms-iziModal' ); } if ( 'edit-account' === $this->current_endpoint_key ) { // Needed in the account edit endpoint. llms()->assets->enqueue_style( 'llms-select2-styles' ); llms()->assets->enqueue_script( 'llms-select2' ); wp_add_inline_script( 'llms', "window.llms.address_info = '" . wp_json_encode( llms_get_countries_address_info() ) . "';" ); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.3.0 | Introduced. |