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

WordPress Brute Force Prevention

Rather than blacklist logins, why not whitelist your own IP (example 12.345.67.891 below; or a range) for wp-login.php and in wp-admin for logins and administration? (No plugin needed). A whitelist will block everyone else except you from login. See http://httpd.apache.org/docs/2.4/howto/access.html in the .htaccess in the wp-admin folder: Options All -Indexes order deny,allow deny from all … Read more

Locked out of admin panel after installing HC Custom WP-Admin URL [closed]

you sad u have access to phpmyadmin. Go to it, find wp_options table Look for custom_wpadmin_slug in option_name and in option_value column will be your’s custom defined wp-admin slug If you’ll still wount be able to access then remove next lines in .htaccess: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^{your_wp_admin_slug}/?$ {your_site.com/}wp-login.php [QSA,L] </IfModule> Note that {your_wp_admin_slug} … 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; } );