- removed feed widget from UM Dashboard;

- code refactoring for UM Gutenberg blocks;
- transferred Social Activity block to UM:Social Activity extension;
This commit is contained in:
nikitasinelnikov
2020-09-23 11:37:42 +03:00
parent e978ab0755
commit 6d57dae16d
4 changed files with 230 additions and 466 deletions
-10
View File
@@ -218,8 +218,6 @@ if ( ! class_exists( 'um\admin\core\Admin_Menu' ) ) {
/** custom metaboxes for dashboard defined here **/
add_meta_box( 'um-metaboxes-contentbox-1', __( 'Users Overview', 'ultimate-member' ), array( &$this, 'users_overview' ), $this->pagehook, 'core', 'core' );
add_meta_box( 'um-metaboxes-mainbox-1', __( 'Latest from our blog', 'ultimate-member' ), array( &$this, 'um_news' ), $this->pagehook, 'normal', 'core' );
add_meta_box( 'um-metaboxes-sidebox-1', __( 'Purge Temp Files', 'ultimate-member' ), array( &$this, 'purge_temp' ), $this->pagehook, 'side', 'core' );
add_meta_box( 'um-metaboxes-sidebox-2', __( 'User Cache', 'ultimate-member' ), array( &$this, 'user_cache' ), $this->pagehook, 'side', 'core' );
@@ -232,14 +230,6 @@ if ( ! class_exists( 'um\admin\core\Admin_Menu' ) ) {
}
/**
*
*/
function um_news() {
include_once UM()->admin()->templates_path . 'dashboard/feed.php';
}
/**
*
*/