bp_core_add_jquery_mask()
Enqueues jquery.mask.js on BuddyPress pages.
Description
Source
File: bp-core/bp-core-cssjs.php
858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 | 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.