Comment Reply E-mail Notification

Por Arno Welzel
(32 avaliações)
Baixar
  • Versão:
    1.33.0
  • Última atualização:
    há 2 meses
  • Instalações ativas:
    mais de 4 mil
  • Versão do WordPress:
    4.4.0 ou maior
  • Testado até o WordPress:
    6.6
  • Versão do PHP:
    ou maior

Hospedagem WordPress com plugin Comment Reply E-mail Notification

Onde posso hospedar o plugin Comment Reply E-mail Notification?

Este plugin pode ser hospedado em qualquer hospedagem que tenha WordPress instalado. Recomendamos fortemente optar por uma empresa de hospedagem confiável, com servidores adaptados para WordPress, como o serviço de hospedagem WordPress da MCO2.

Hospedando o plugin Comment Reply E-mail Notification em um provedor confiável

A MCO2, além de instalar o WordPress na versão mais atual para seus clientes, fornece o plugin WP SafePress, um sistema singular que protege e melhora seu site ao mesmo tempo.

Por que a Hospedagem WordPress funciona melhor na MCO2?

A Hospedagem WordPress funciona melhor pois a MCO2 possui servidores otimizados para WordPress. A instalação de WordPress é diferente de uma instalação trivial, pois habilita imediatamente recursos como otimização de imagens e fotos, proteção da página de login, bloqueio de atividades maliciosas diretamente no firewall, cache avançado e HTTPS ativado por padrão. São recursos que potencializam seu WordPress para a máxima segurança e o máximo desempenho.

This plugin allows visitors to subscribe to get answers to their comments via e-mail.

Atenção

Este plugin usa o gancho “wp_insert_comment”, portanto, toda vez que um comentário é criado, é provável que uma notificação seja enviada. Se você estiver importando comentários para o seu blog, é recomendável desativar esse plugin.

Sending e-mails does not work?

The plugin uses the standard WordPress e-mail function. If you have problems getting e-mails sent, you might try using plugins like https://wordpress.org/plugins/wp-mail-smtp/ to improve sending e-mails from your site.

Customizing the layout of the checkboxes

The label next to the checkboxes don’t contain a whitespace. Depending on your theme you might want to add a custom style like this to get a space between the checkbox and the label:

input#cren_subscribe_to_comment, input#cren_gdpr {
  margin-right: 0.5em;
}

The plugin does not add this style be default as it depends on your theme if this is neccessary.

Personalizando o modelo de e-mail

To customize the email template, copy the “templates” folder to your theme folder (a child theme should be used to avoid losing the custom templates when the theme is updated). The plugin will look for templates on the “/wp-content/themes/[THEME]/templates/cren/” folder; if a custom template is not found, then it will fallback to the default template.

Templates folder on GitHub: https://github.com/arnowelzel/worpdress-comment-reply-email-notification/tree/master/templates

Alterando o rótulo da caixa de seleção de assinatura

O rótulo da caixa de seleção pode ser alterado com o filtro cren_comment_checkbox_label. Desta forma, você pode atualizar o texto ao seu gosto e manter o plugin atualizado.

Alterando o rótulo da caixa de seleção do GDPR

O rótulo da caixa de seleção do GDPR pode ser alterado com o filtro cren_gdpr_checkbox_label. Desta forma, você pode atualizar o texto ao seu gosto e manter o plugin atualizado.

Modifiying HTML output

Using the filters cren_gdpr_checkbox_html and cren_comment_subscribe_html you can modify the HTML output of the checkboxes if needed.

Example:

add_filter('cren_gdpr_checkbox_html', function(string $html_output, string $label_text, string $privacy_policy_url): string {
    $html_output = '<div class="comment-form-gdpr-consent form-check mb-3"><input id="cren_gdpr" class="form-check-input" name="cren_gdpr" type="checkbox" value="yes" required checked><label for="cren_gdpr" class="form-check-label">' . $label_text . '<span class="text-danger fw-bold">*</span> (<a href="#" title="Privacy Policy" target="_blank" rel="internal">Privacy Policy</a>)</label></div>';

    return $html_output;
}, 10, 3);

add_filter('cren_comment_subscribe_html', function(string $html_output, string $label_text, bool $checked_default): string {
    $checked = $checked_default ? 'checked' : '';
    $html_output = '<div class="comment-form-email-consent form-check mb-3"><input id="cren_subscribe_to_comment" class="form-check-input" name="cren_subscribe_to_comment" type="checkbox" value="on" ' . $checked . '><label for="cren_subscribe_to_comment" class="form-check-label">' . $label_text . '</label></div>';

    return $html_output;
}, 10, 3);