Top Banner
Do’s and Don’ts of #wcatx April 26, 2014 rdPress Multisit
23

2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

Sep 03, 2014

Download

Technology

WPMU DEV

We’ll share our experience of building and managing large Multisite networks to provide tips and tricks for all levels including:

- minimum hosting requirements
- recommended free plugins
- coding for Multisite basics (common pitfalls)
- creative ways to leverage Multisite
- advice on painless backups, development environments, and upgrades
- a preview of the Multisite roadmap
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

Do’s and Don’ts of

#wcatx April 26, 2014

WordPress Multisite

Page 2: 2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

Who We AreAaron Edwards

CTO/Lead DeveloperTwitter: @UglyRobotDev

Ronnie Burt

Product ManagerTwitter: @ronnieburt

, , and CAMPUSPRESS

Page 3: 2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

What is WordPress Multisite?

• A multisite network is a collection of sites that all share the same WordPress installation, plugins/themes, and users.

• The red-headed stepchild of WordPress

Page 4: 2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

Two Types of Networks

1. Open Registration – anyone can signup and create sites. (Like WordPress.com)

2. Closed or Trusted Networks – sites and user registration is limited.

Page 5: 2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

Example NetworksOpen Registration (often with paid upgrades)• WordPress.com • Edublogs.org• HappyTables.com• MissionsPlace.com

Page 6: 2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

Example NetworksClosed Registration• WordCamp.org• u.osu.edu• bbcamerica.com

Page 7: 2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

The Network Admin

Page 8: 2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

Plugins and Themes• Only Super Admin can add/edit• Update on all sites at once• Can choose to limit a theme to

certain site(s)• Plugins vs. Themes Network

Activation

Page 9: 2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

Use Multisite If…• Sharing users across multiple sites• Want users to create blogs/sites on-demand• Intranet or internal company sites• Need to aggregate content from network• Development and test sites in one network• Multiple personal or client sites in one

network*

Page 10: 2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

Don’t Use If…• Users shouldn’t all be shared • Need Public registration on each sub

site• Categories or tags will do• Each site should look the same• Admins on each site need FTP, etc.• Users need to install plugins/themes

Page 11: 2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

Subdomain vs SubdirectorySubdomain

• mysite.com• blogname.mysite.com• username.mysite.comSubdirectory• mysite.com• mysite.com/blogname• mysite.com/username

Page 12: 2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

Hosting• Shared hosting NOT recommended• Small networks can start with

managed hosting (WP Engine) or a VPS (DigitalOcean, etc)

• Large networks – hire (or become) a sysadmin!

Page 13: 2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

Security• Public means untrusted users!

– File types/uploads– Embedding/scripts– Content (copyright, DMCA, etc.)

• Plugins and Themes are OFTEN insecure in multisite, be careful what you install!

Page 14: 2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

Backups

• Do NOT use a plugin for backups (BackupBuddy, Snapshot, etc.)

• Use host’s backup solution, or server side scripts

• Large databases

Page 15: 2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

Upgrades and Updates• Auto-updates not recommended for

large networks– define( 'DISALLOW_FILE_MODS', true );– define( 'DO_NOT_UPGRADE_GLOBAL_TABLES', true );

• Code changes affect ALL sites!• Use version control

Page 16: 2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

Recommended Plugins

• Free Plugins– http://wordpress.org/plugins/tags/multisi

te

• 25 Plugins We Recommend – http://wp.mu/8uu

Page 17: 2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

Anti-Splog

• http://wordpress.org/plugins/anti-splog/

The ultimate plugin and service to stop and kill splogs in WordPress Multisite

Page 19: 2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

New Blog Templates

• Free– http://wordpress.org/plugins/wpmu-new-blog-defaults

• Premium– https://premium.wpmudev.org/project/new-blog-template/

Choose default content, settings, plugins, theme and more for all new sites.

Page 20: 2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

Multisite Plugin Manager• Select what plugins sites have access

to– All sites– Override for specific sites

• Auto-activate specific plugins on new sites

Manage plugin access permissions across your entire multisite network.

http://wordpress.org/plugins/multisite-plugin-manager/

Page 21: 2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

Coding Pitfalls

• current_user_can(‘unfiltered_html’)• NEVER loop through blogs!• add_action( ‘network_admin_menu’, ‘my-settings’ );

• Capabilities– Super Admin capabilities – manage_network_options– Special admin capabilities

Page 22: 2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

Multisite Roadmap

• Domain mapping in core?• Multi-networks?• Better Jetpack?

Page 23: 2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite

Questions?

Thank you #wcatx!@UglyRobotDev

@ronnieburt

Security?

Scaling?

Recommended Plugins/Themes?