bp_media_activation_notice ()
挂钩显示管理通知时,媒体组件是活动的
描述
源
文件:bp-media / bp-media-filters.php
函数bp_media_activation_notice(){全局$wpdb;如果(!空($ _GET['页'])& &“bp-media-import”= = $ _GET['页']){返回;} $bp_media_import_status = get_option('bp_media_import_status');If ('done' != $bp_media_import_status) {$buddyboss_media_table = $wpdb->prefix . txt . txt . txt . txt . txt . txt . txt . txt . txt . txt . txt . txt . txt。“buddyboss_media”;$buddyboss_media_albums_table = $wpdb->前缀。“buddyboss_media_albums”;如果(!$wpdb->get_results("SHOW TABLES LIKE '{$buddyboss_media_table}';")) && ! empty( $wpdb->get_results( "SHOW TABLES LIKE '{$buddyboss_media_albums_table}' ;" ) ) ) { $admin_url = bp_get_admin_url( add_query_arg( array( 'page' => 'bp-media-import', 'tab' => 'bp-media-import' ), 'admin.php' ) ); $notice = sprintf( '%1$s %3$s', __( 'We have found some media uploaded from the BuddyBoss Media plugin, which is not compatible with BuddyBoss Platform as it has its own media component. You should import the media into BuddyBoss Platform, and then remove the BuddyBoss Media plugin if you are still using it.', 'buddyboss' ), esc_url( $admin_url ), __( 'Import Media', 'buddyboss' ) ); bp_core_add_admin_notice( $notice ); } } }
更新日志
版本 | 描述 |
---|---|
BuddyBoss 1.0.0 | 介绍了。 |