bp_dd_update_import( string $group, string $import )
Save when the importing was done.
Description
Parameters
- $group
-
(Required)
- $import
-
(Required)
Return
(bool)
Source
File: bp-core/bp-core-tools-default-data.php
function bp_dd_update_import( $group, $import ) { $group = sanitize_key( $group ); $import = (string) sanitize_key( $import ); if ( ! in_array( $group, array( 'users', 'groups', 'forums' ) ) ) { return false; } $values = bp_get_option( 'bp_dd_import_' . $group, array() ); $values[ $import ] = bp_dd_get_time(); return bp_update_option( 'bp_dd_import_' . $group, $values ); }
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.