Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter timka

    (@timka)

    how do I do#1?

    where do I download WordPress to?

    Thread Starter timka

    (@timka)

    I spent more than an hour Friday on chat with Godaddy ending in them in as much saying they couldn’t help me at their level and trying to sell me their WP Premier Support

    Thread Starter timka

    (@timka)

    I don’t know, threadi, and don’t know how to check that. It must have to do with my deleting the ssl certificate. When I type in the url I get a “coming soon” message. Try it. https://carymacgregorrotary.org you’ll see that it’s still looking for https

    Thread Starter timka

    (@timka)

    I had deleted an expired SSL certificate. URL still loads as https

    Thread Starter timka

    (@timka)

    404 File not found

    Thread Starter timka

    (@timka)

    I added the code snippet referenced above but am not getting the email notification of a posted response.

    Here is where I inserted the snippet:

    class Theme {
    
    	public function __construct( $check = false ) {
    		if ( $check ) {
    			add_action( 'wp', [ $this, 'check_theme_requirements' ] );
    		}
    	}
    
    	public function init( $options ) {
    		$this->constants( $options );
    		$this->backward_compatibility();
    		$this->helpers();
    		$this->functions();
    		$this->menu_walkers();
    		$this->admin();
    		$this->theme_activated();
    		
    		add_action('site-reviews/review/responded', function ($review, $response) {
        $hasResponse = !empty($review->response);
        $hasResponseUserId = !empty(get_post_meta($review->ID, '_response_by', true));
        if (empty($response) || $hasResponse || $hasResponseUserId) {
            return; // only send an email if the response is not empty and there is no previous response
        }
        if (empty($review->email)) {
            return; // this review has not been submitted with an email
        }
        if (empty($review->assigned_posts)) {
            return; // this review has not been assigned to any Post
        }
        $postId = $review->assigned_posts[0]; // Get the first assigned Post ID
        $permalink = get_permalink($postId); // Get the permalink of the assigned Post
        $subject = sprintf('[%s], We have responded to your review!', get_bloginfo('name'));
        $message = sprintf('Just letting you know that we have <a href="%s">responded to your review</a>!', $permalink);
        $email = glsr('Modules\Email')->compose([
            'to' => $review->email,
            'subject' => $subject,
            'message' => $message,
        ]);
        $email->send();
    }, 10, 2);
    
    		add_action(
    			'admin_menu', array(
    				&$this,
    				'admin_menus',
    			)
    		);
    Thread Starter timka

    (@timka)

    Thanks again. I now understand how to hide responses and how to send an email to the review author.

    One more question, please. If the response is hidden, and we don’t email the author, is there any reason to write a response? Who would see it if written?

    Thread Starter timka

    (@timka)

    Also, if the response is hidden, does that mean no-one sees it? Then why even write the response? Or am I missing something?

    Thread Starter timka

    (@timka)

    Thank you. Where do I insert the code [site_reviews hide=”response”]?

    Thread Starter timka

    (@timka)

    Thank you Kratinjay. Should I delete all the files that were created by the existing site before I install WordPress and upload the new site?

Viewing 10 replies - 1 through 10 (of 10 total)