I’m writing a standalone script for WordPress so I can display things like the username on a page outside of WordPress. My method so far is to try to...
Created a class in an external script which is dependent on the WordPress environment. Since it’s a class I intend to use on various projects, I decided to dynamically...
I have to run a PHP script through real cron (WP cron being too unreliable). Within that script, I need $wpdb to insert data into WordPress table. But of...
I created an external script to import json data into a custom post type that uses wp-load.php. Everything works fine but after every update I get the message Notice:...
I’m trying to direct a php authorization script to act if the page that referred to it belongs to a certain category (free). Is there something other than <?php...
I have recently installed a WordPress Multisite Blog on my domain. Everything is working fine, except for wp-admin of the subsites: I can access wp-admin of a subsite, but...
I have a subfolder install of WP multisite, let’s say at “domain.com”. I now need to load the WP environment in subdomains of domain.com, say “sub1.domain.com”, “sub2.domain.com”, … “subN.domain.com”....
When is wp_loaded initiated? Im trying to add function that downloads a big file for the plugin DB, and I need it to be executed whenever user/admin/unknown user get...
I have two totally separate WP websites setup. Different domains, different databases. I manage both of them and they are both hosted on a dedicated server. I am trying...
I want to use the get_option() function of wordpress in one of my theme’s files, which is not related to WP, it is just located in the same directory...