_bp_profile_search_admin_js()
Enqueue BuddyBoss Profile Search JS.
Description
Source
File: bp-core/profile-search/bps-start.php
function _bp_profile_search_admin_js () {
$translations = array (
'drag' => __('Drag & drop to reorder fields', 'buddyboss'),
'field' => __('Select field', 'buddyboss'),
'remove' => __('Remove', 'buddyboss'),
);
wp_enqueue_script ( 'bp-profile-search-admin', buddypress()->plugin_url . 'bp-core/profile-search/bp-ps-admin.js', array ('jquery-ui-sortable'), bp_get_version() );
wp_localize_script ( 'bp-profile-search-admin', 'bp_ps_strings', $translations );
}
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.