New answers tagged

0 votes

How would you detect if WordPress is installed in a subdirectory (not root)?

Try this: if ( '/' !== site_url( '', 'relative') ) {
iohnatan's user avatar

Top 50 recent answers are included