I made following plugin and now the default welcome panel is skipped.
function hide_welcome_panel() {
$user_id = get_current_user_id();
if ( 1 == get_user_meta( $user_id, 'show_welcome_panel', true ) )
update_user_meta( $user_id, 'show_welcome_panel', 0 );
}
add_action( 'load-index.php', 'hide_welcome_panel' );
However, the front page does not work properly yet:
– Jetpack statistics panel is empty
– Wp news panel contains just a text “Loading…”
– Not possible to make any kind of modification to front page, i.e. move panels, change screen settings, open help etc.
Any idea what could be the problem?
I read somewhere that changing PHP config could help in such cases (not done before). I wonder, if somebody could explain shortly why this could help?
As the actual blog/website works fine I hesitate to make any major changes without knowing why I’m doing those and what are the potential risks.