/** * Stores db version * * @package BP Reshare * @subpackage Admin * @since version 1.0 * * @uses buddyreshare() to get plugin's main instance * @uses bp_current_user_can() to check for user's capability * @uses buddyreshare_get_plugin_version() to get plugin's version * @uses bp_get_option() to get plugin's db version * @uses bp_update_option() to update plugin's db version */ public function admin_menus() { $buddyreshare = buddyreshare(); // Bail if user cannot manage options if (!bp_current_user_can('manage_options')) { return; } if ($buddyreshare::buddypress_version_check() && buddyreshare_get_plugin_version() != bp_get_option('bp-reshare-version')) { bp_update_option('bp-reshare-version', buddyreshare_get_plugin_version()); } }
/** * Returns plugin's component name * * @package BP Reshare * @since 1.0 * * @uses buddyreshare() plugin's main instance */ function buddyreshare_get_component_name() { return apply_filters('buddyreshare_get_component_name', buddyreshare()->component_name); }