Files
powerservice/wp-content/plugins/alcastromol-functions-oxygen-6.0-tailwind-3/functions/admin/admin-comments.php
T
2026-10-19 12:45:45 -06:00

38 lines
1.1 KiB
PHP

<?php
if (!defined('ABSPATH')) {
exit;
}
function alcastromol_setup_comment_settings() {
if (get_option('alcastromol_comments_done')) {
return;
}
update_option('default_pingback_flag', 1);
update_option('default_ping_status', 'closed');
update_option('default_comment_status', 'closed');
update_option('require_name_email', 1);
update_option('comment_registration', 1);
update_option('close_comments_for_old_posts', 1);
update_option('close_comments_days_old', 14);
update_option('show_comments_cookies_opt_in', 1);
update_option('thread_comments', 1);
update_option('thread_comments_depth', 5);
update_option('page_comments', 0);
update_option('comments_per_page', 50);
update_option('default_comments_page', 'last');
update_option('comment_order', 'asc');
update_option('comments_notify', 1);
update_option('moderation_notify', 1);
update_option('comment_moderation', 1);
update_option('comment_previously_approved', 1);
update_option('alcastromol_comments_done', 1);
}