Can upload doc and pdf but not ppt – not permitted for security reasons

Found it while digging around in multisite network admin settings: there is a setting called “Upload file types” (in the database it’s the row with meta_key = “upload_filetypes” in the wp_sitemeta table) which contains a list of allowed filetypes. Adding “ppt” to the list allows them to be uploaded.

Plugin Development: WPMU or WP?

You’ll need to test in both setups, because they behave differently in a lot of situations. Some of the most notable differences are: If you register an activation callback, you need to check if the activation was network-wide. If it was, run the activation logic for all the blogs instead of just the current one. … Read more

Create site programmatically for WPMU

first create a user from this function $user_id = wpmu_create_user( $username, $password, $email ); then used this function to create blog wpmu_create_blog( $newdomain, $path, $title, $user_id , array( ‘public’ => 1 ), $current_site->id ); for detail you can see this file /wp-admin/network/site-new.php after viewing this page you will have the exact idea what you want … Read more

How do I change the Multisite URL?

There are 5 values need to change. From database. wp_options: options named “siteurl” and “home” wp_site wp_sitemeta: the option named “siteurl” wp_blogs: any entries in the “domains” column that have the old domain name wp_#_options: Each sub-site will have sets of tables that correspond to the blog_id in the wp_blogs table. You need to go … Read more

WP Multisite development with Mamp Pro and wildcard subdomains, not really working for me

Appart of the default ports and correctly configuring WPMS… In the Advanced Tab: And manually add the subdomains in /etc/hosts1 file: # BRASOFILO MULTISITE START 127.0.0.1 test1.brasofilo.dev 127.0.0.1 test2.brasofilo.dev 127.0.0.1 cloned.brasofilo.dev # BRASOFILO MULTISITE STOP 1 The folder etc is at the root of your HD and it’s hidden. You can open the file using … Read more

is_front_page() malfunction?

Just speculation, but I wonder if you’re running into an anonymous function problem. Anonymous functions are allowed in WP, and usually work fine (presuming updated PHP), but, if you search around you’ll find reports of suspected bugs or at least of unexpected behavior. For that matter, I’m not sure that I’ve ever seen an anonymous … Read more

What do I need to do to convert my MultiSite from HTTP to HTTPS?

You could run a script to UPDATE all urls and guids to https, if you want a clean setup. But also consider alternatives such as: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.yoursite.com/$1 [R,L] </IfModule> In wp-config.php for the backend: define(‘FORCE_SSL_ADMIN’, true); In wp-config.php for the frontend (or run a db UPDATE script): … Read more