bp_dd_is_imported( string $group, string $import )
Check whether something was imported or not.
Description
Parameters
- $group
-
(Required) Possible values: users, groups
- $import
-
(Required) What exactly was imported
Return
(bool)
Source
File: bp-core/bp-core-tools-default-data.php
function bp_dd_is_imported( $group, $import ) { $group = sanitize_key( $group ); $import = sanitize_key( $import ); if ( ! in_array( $group, array( 'users', 'groups', 'forums' ) ) ) { return false; } return array_key_exists( $import, (array) bp_get_option( 'bp_dd_import_' . $group ) ); }
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.