20 lines
334 B
PHP
20 lines
334 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();
|
|
} |