bp_gifts_setup_globals
Bp_gifts_setup_globals().
Description
bp_gifts_setup_globals();
Sets up global variables for your component.
Usage
if ( !function_exists( 'bp_gifts_setup_globals' ) ) { require_once ABSPATH . PLUGINDIR . 'buddypress-gifts-latest-2014/includes/bp-gifts-core.php'; } // NOTICE! Understand what this does before running. $result = bp_gifts_setup_globals();
Defined (1)
The function is defined in the following location(s).
- /includes/bp-gifts-core.php
- function bp_gifts_setup_globals() {
- global $bp, $wpdb;
- $bp->gifts->id = 'gifts';
- $bp->gifts->table_name = $wpdb->base_prefix . bp_gifts;
- $bp->gifts->table_name_data = $wpdb->base_prefix . 'bp_gifts_data';
- $bp->gifts->format_notification_function = 'bp_gifts_format_notifications';
- $bp->gifts->slug = BP_GIFTS_SLUG;
- $bp->active_components[$bp->gifts->slug] = $bp->gifts->id;
- }