function to set permalink to /%postname%/ on theme activation August 27, 2022 by Tarik Billa You could, but I’d actually highly advise against that. In quite a few cases that will cause lots of 404 errors.