Forcing the Uninstall Hook to fail

Multiple alternate suggestions to achieve your objective: make the plugin a ‘must-use’ https://codex.wordpress.org/Must_Use_Plugins, they do not apply exclusively to multi-site. Can use them in normal wp. give the client a customised role (as Kaperto suggested) that excludes ‘delete-plugins’ Name the plugin something like ‘Essential Plugin’. Add ‘Do not delete in the description’ & Educate the … Read more

Invalid Menu Items

I’ve identified two issues, the first, this: ‘rewrite’ => true, ‘rewrite’ => array( ‘slug’ => ‘districts’ ), Can just be this: ‘rewrite’ => array( ‘slug’ => ‘districts’ ), And the second, the reason you get invalid menu items, is because districts is being used as the rewrite slug, but, the internal namevof the taxonomy is … Read more

Is the only way to add taxonomy terms via an admin panel?

I think you are looking for wp_insert_term(). An example from the Codex: $parent_term = term_exists( ‘fruits’, ‘product’ ); // array is returned if taxonomy is given $parent_term_id = $parent_term[‘term_id’]; // get numeric term id wp_insert_term( ‘Apple’, // the term ‘product’, // the taxonomy array( ‘description’=> ‘A yummy apple.’, ‘slug’ => ‘apple’, ‘parent’=> $parent_term_id ) );

How can I interact with a third party service that sends POST requests to me in response to the order information that I send them?

Since I doubt “pretty” URLs are important here, it’s incredibly easy to create an endpoint/handler using the AJAX api (the other option is to use the rewrite API and listen out for a hit). Don’t be put off by the term “AJAX” – this is simply a script within your WordPress install that will fire … Read more