I am working on a web using wordpress and ACF (advanced custom field). My problem is that I want to insert widget, but the widget tab is hidden in the wordpress menu. I suppose that some file must be blocking its visualization.
How do I make that tab appear?
I enclose a code of functions_clear.php that I think may have something to do ... I'm not sure.
function quitar_widgets_escritorio() {
global $wp_meta_boxes;
unset($wp_meta_boxes['dashboard']['side']['core']['wp_welcome_panel']);
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_drafts']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);
}
add_action('wp_dashboard_setup', 'quitar_widgets_escritorio' );
function my_function_admin_bar(){
return false;
}
add_filter( 'show_admin_bar' , 'my_function_admin_bar');