Restricting page by user role

I’ll try to answer the question from beginning to end so for example, when user with customer role wants to login to example.com/about page, they will be redirected to another page. I want to do this in software, not with a plugin Note that you can turn the snippet into a plugin by adding this … Read more

Show/hide comment status in front-end

Yes; you can use get_comments() function to query comments and specify spam as the status. Placing the button will depend on your theme, but the below is how to get the comments marked as spam (tested): get_comments( array( ‘post_id’ => $post_id, ‘status’ => ‘spam’, ) );

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