bp_core_add_jquery_mask()
Enqueues jquery.mask.js on BuddyPress pages.
Description
Source
File: bp-core/bp-core-cssjs.php
function bp_core_add_jquery_mask() { if ( ! is_buddypress() ) { return; } if ( 'profile' != bp_current_component() || 'edit' != bp_current_action() ) { return;//we need this script only on profile edit screens } if ( wp_script_is( 'jquery-mask' ) ) { return; } wp_enqueue_script( 'jquery-mask' ); add_action( 'wp_footer', 'bp_core_add_jquery_mask_inline_js' ); }
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.0 | 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.