Where is the Leave a Comment link set

Some plugins and I guess themes save the initial URLs and paths in their configuration files. If you checked the DB and especially the options table and haven’t found their any mention of the old domain, then you should also search for it in the source files. It is probably best to simply download the … Read more

Adding restrictions to open comments

All you need is to simply check if the entered name or email matched any admin accounts before the comment is saved. function restrict_admin_names() { if ( !is_user_logged_in() ) { $name = $_POST[‘author’]; // Get Submitted Name $email = $_POST[’email’]; // Get Submitted Email $admins = get_super_admins(); // Get an array of admin login $adminemail[] … Read more

Front End User(bloger) turn on and off his comments

you should do something like this //For update a page when use costum template $post = get_the_ID(); $my_post = array( ‘ID’ => $post, ‘comment_status’ => ‘open’ // closed ); // Update the post into the database wp_update_post( $my_post );

page creator to leave comments ONLY

There’s probably a way to do this via one of the meta cap filters, but off the top of my head you could use the comments_open filter to check if the currently logged in user is the author of the post and change the output of the comments_open() function accordingly. I’m on the patio, so … Read more

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