Cannot redeclare wp_update_core()

you probably need to reinstall manually the wordpress core with the help of FTP software download from wordpress.org the latest version of wordpress. rename or delete the wp-admin and wp-oncludes directories upload wordpress. to be fully safe during this process you might want to add a .maintenance file before step 2 and remove it after … Read more

How to hide Admin Tabs? [duplicate]

You could use this code (below is just an example for 3 random tabs) function disable_user_profile() { if ( !current_user_can( ‘publish_posts’ ) ) { wp_redirect( admin_url(‘index.php’) ); } } add_action( ‘load-profile.php’, ‘disable_user_profile’ ); // disable profile tab add_action( ‘load-tools.php’, ‘disable_user_profile’ ); // disable tools tab add_action( ‘load-edit.php’, ‘disable_user_profile’ ); // disable posts tab The if … Read more

Change admin defaults for reading settings

You can use the wpmu_new_blog action to automatically set the default to 6 for new installs: function wpse_139900_default_posts_per_page( $blog_id ) { update_blog_option( $blog_id, ‘posts_per_page’, 6 ); } add_action( ‘wpmu_new_blog’, ‘wpse_139900_default_posts_per_page’ ); If you don’t want your users to be able to change this setting, you can just override it instead: function wpse_139900_posts_per_page() { return 6; … Read more

Dashboard Widget CSS

You could use postbox_classes filter as follow: add_filter( ‘postbox_classes_dashboard_widget2’, function ( $classes ) { // $classes is an array; add your custom classes to the array $classes[] = ‘my-class’; return $classes; } );

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)