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

20 lines
353 B
PHP

<?php
if (!defined('ABSPATH')) {
exit;
}
function alcastromol_setup_permalinks() {
global $wp_rewrite;
$structure = '/%postname%';
update_option('permalink_structure', $structure);
$wp_rewrite->set_permalink_structure($structure);
$wp_rewrite->use_trailing_slashes = false;
flush_rewrite_rules();
}