Changed some wording and removed website section
This commit is contained in:
@ -197,3 +197,32 @@ require get_template_directory() . '/inc/metaboxes/mt-post-sidebar-meta.php';
|
||||
if ( ! function_exists( 'breadcrumb_trail' ) ) {
|
||||
require get_template_directory() . '/inc/mt-class-breadcrumbs.php';
|
||||
}
|
||||
//* Remove URL field from comments
|
||||
function remove_url_comments($fields) {
|
||||
unset($fields['url']);
|
||||
return $fields;
|
||||
}
|
||||
add_filter('comment_form_default_fields','remove_url_comments');
|
||||
//* Edit Cookie consent text from comments
|
||||
add_filter( 'comment_form_default_fields', 'wc_comment_form_change_cookies' );
|
||||
function wc_comment_form_change_cookies( $fields ) {
|
||||
$commenter = wp_get_current_commenter();
|
||||
|
||||
$consent = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"';
|
||||
|
||||
$fields['cookies'] = '<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' .
|
||||
'<label for="wp-comment-cookies-consent">'.__('Save my Name & Email for the next time I comment.', 'textdomain').'</label></p>';
|
||||
return $fields;
|
||||
}
|
||||
//* Edit comment-notes text from comments
|
||||
function crunchify_modify_text_before_comment_form($arg) {
|
||||
$arg['comment_notes_before'] = '<p class="comment-notes">' . __( 'All comments are manually reviewed and moderated.<br><span class="required-field-message">Required fields are marked <span class="required">*</span></span>' ) . '</p>';
|
||||
return $arg;
|
||||
}
|
||||
add_filter('comment_form_defaults', 'crunchify_modify_text_before_comment_form');
|
||||
|
||||
add_action( 'comment_form', 'modify_text_comment_form' );
|
||||
function modify_text_comment_form( $post_id ) {
|
||||
printf( '<span class="submit-comment-note">%s</span>',
|
||||
__( '<i>By commenting, you consent to our <a href="/privacy-policy">Privacy Policy</a></i>', 'your_text_domain' ) );
|
||||
}
|
Reference in New Issue
Block a user