Tag Info

Hot answers tagged

2

By now, it is possible without any plugin. WordPress allows you to edit a sites domain and path free of any restrictions once it is created. First of all: create a new site with an arbitrary but valid subdomain: After the site was created follow the »edit site« link in the confirmation message. Here you can alter the domain and/or path on your own ...


2

Regarding the update part in your question: I think the problem here is that you're missing the number of accepted arguments in your add_action() setup. If you check out the Codex, the usage is: add_action( $hook, $function_to_add, $priority, $accepted_args ); where by default $priority = 10 and $accepted_args = 1. So your code snippet should be like: ...


1

Use $wpdb->base_prefix . 'table_name' as a table name when you want to create a table for the whole network, or when you want to run queries on it. $wpdb->base_prefix is always the prefix for the current network’s main table.


1

You should create a table only on activation, if is not created, exist in the database. A small source example should help you. The follow source create a table, also in single sites, maybe the plugin will activate in single mode for each side in the network. register_activation_hook( __FILE__, 'on_activate' ); function on_activate() { create_table(); ...


1

There are two types of multisite compatibility: Passive compatibility: doing nothing multisite specific, just works without breaking anything. Active compatibility: changing or extending multisite specific behavior. I guess you are out for 1. See my slides from WordCamp Prague 2015 for the second part. Plugins that do not say anything about multisite ...



Only top voted, non community-wiki answers of a minimum length are eligible