Maintenance mode excluding site administrators

Only administrators already login will have access to the website, no one else. just change the $url variable to your url where you have the maintenance page desired. function wp_maintenance_mode() { if (!current_user_can(‘administrator’)) { $url = “your maintenance file url you want to display while is on maintenance”; wp_redirect( $url ); exit; } add_action(‘get_header’, ‘wp_maintenance_mode’); … Read more

Can we change the hook firing sequence?

It’s a bit of a hack, but you could create a new member in your $plugin_admin_listings class that’s an array of post IDs published in this page cycle in your transition_post_status add the IDs to that array in save_meta_data as you save each post check if its ID is in the published_posts array and then … Read more

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