Admin Access for specific page(s)

I know this question is kind of off-topic but I need to come in and say firstly don’t add anybody… anybody…. ANYBODY!! as admin on the site… At that level they can do everything you can do, or probably a lot more if they actually know what they’re doing :-p It’s a good way of … Read more

Disable plugin for administrator

I just tested your code and it works, so it seems one of the two following things. You are placing the code in the wrong place, make sure you put that code at the bottom of the functions.php file of your theme. Or maybe the functions.php file of your theme is having problems, in which … Read more

Logging in to installation in subdirectory renders broken dashboard (no CSS, broken links)

Try disabling all plugins temporarily (you can do that quickly by renaming the wp-content/plugins folder to something else). See if that fixes the admin screen. If it does, make a new wp-content/plugins folder, then move plugin folders from the renamed folder back into the wp-content/plugins folder one at a time. Retest, and see if one … Read more

Show admin bar to editors with Buddypres

Please see https://codex.wordpress.org/Function_Reference/show_admin_bar. With newer version of WordPress you may need to use the following which will leave the Toolbar available in the Dashboard but hide it on all front facing pages. So instead of show_admin_bar(true); you can use add_filter(‘show_admin_bar’, ‘__return_true’);

Add view to admin menu to filter for specific criteria ( If post is child of specific Parent )

You can “load the pages” via the pre_get_posts action, like so: add_action( ‘pre_get_posts’, ‘my_admin_pre_get_posts’ ); function my_admin_pre_get_posts( $q ) { // Check whether the filter was clicked. if ( isset( $_GET[‘post_parent’] ) ) { $screen = is_admin() ? get_current_screen() : null; // And that it’s the edit pages page. if ( $screen && ‘edit-page’ === … Read more

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