How to put WordPress website behind the credential for visitors?

I have put the following code in index.php file. It’s working fine as I was looking. define(‘WP_USERNAME’, ‘PassW0rd$2017’); $error_msg = ”; $status = session_status(); if (PHP_SESSION_DISABLED === $status) { // That’s why you cannot rely on sessions! // return; } if (PHP_SESSION_NONE === $status) { session_start(); } if (isset($_SESSION[‘user_name’]) && $_SESSION[‘user_name’] != ” && $_SESSION[‘user_name’] … Read more

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

WP Plugin permissions – create new files

I can think here of two possibillites. Use the wp-content/uploads maybe for your text-file because the file permission restriction are more or less bypassed in this directory. Put all stuff to wp_options and write a page Template imitating the text-file like page_text.php /* Template Name: Text-Template */ echo get_option(‘ads’, false); Create a page and asign … Read more

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