Where and how to define variables for URLs etc
I believe you can just use site_url() + the path – so for instance: <input type=”hidden” name=”cancelurl” value=”<?php echo site_url(‘/cancel/’); ?>”>
I believe you can just use site_url() + the path – so for instance: <input type=”hidden” name=”cancelurl” value=”<?php echo site_url(‘/cancel/’); ?>”>
You shouldn’t need to change anything in the database. If you’ve set up your child theme correctly, and it appears in the list of installed themes, activating that child theme, should make any updates necessary. The customizations you made back in the day should go in the child functions.php and child style.css. As long as … Read more
Cannot enable WordPress Network – ‘MULTISITE’ already defined and false
WP_HOME (and WP_URL) are undefined
Constant defined in header.php not visible in functions.php
Is it better to use a constant or apply_filter?
I guess what you are saying is that it then ‘exports’ the wrong system’s xml (I’m not familiar with the plugin) ? Ideally the plugin itself should be including/using the code rather in such a way so that it still knows the context/system in which it is being used irrespective of where the code is … Read more
You can do that, but you shouldn’t: Keep the global namespace clean. Each name in the global namespace is a collision candidate. Making a variable global, a constant or a function increases the likelihood of a collision, no matter how good your prefixes are. Constants are the slowest global types. Yes, that’s micro-optimization, but why … Read more
The WordPress directory path is available in the constant ABSPATH. Be aware this is not related to the wp-content directory. The constant WP_CONTENT_DIR could be set to exactly the same value. Or another directory on the same level where WP_CONTENT_URL is another domain name. There doesn’t even have to be a wp-content equivalent: themes, plugins, … Read more
So in the old days when WordPress updated you got the whole shebang and deleting Akismet after every time was deadly boring. Things had slightly improved since then (partially driven by minimizing traffic it takes to serve update to everyone), but process also got more complicated. Now there are multiple versions of update archive that … Read more