-
-
Couldn't load subscription status.
- Fork 63
how to use wp ultimo snippets on our github repository
There are code snippets available in GitHub repository that are frequently requested by Ultimate Multisite users who wish to add small functionalities like adding Google Analytics script on sign-up pages or hiding a meta box from the admin dashboard.
This article will show you how to use or more specifically where to place these codes.
You can find the snippets on the link below.
https://github.com/next-press/wp-ultimo-snippets/
There are 2 ways for you to add the code
-
On your theme's functions.php file.
-
Must-Use Plugins (mu-plugins)
-
Log into your WordPress Network admin dashboard and go to Themes >Theme Editor (See screenshot below).
-
On the "Edit Themes" page, make sure that you have your active theme selected on the dropdown field located on the upper right-hand side of your screen (#3 on the screenshot below).
-
Click the functions.php file under the "Theme Files" section to load the file. Scroll down at the bottom and paste the Ultimate Multisite snippet you got from GitHub repository.
WordPress has a feature that allows you to load custom functionality called "Must-Use Plugins", or "mu-plugins" for short.
These special mu-plugins are loaded before all other regular plugins, and they can’t be deactivated. In a multisite network, the code in these mu-plugins will be loaded on all the sites in your installation.
1. Use FTP or SSH to access the filesystem of your WordPress install.
2. Inside the wp-content directory of your WordPress install, create a new directory named: mu-plugins.
3. Create a new PHP file on your computer named wu-snippet.php using Notepad or any code editor.
4. Place the Ultimate Multisite code snippet you got GitHub repository into the file and save it. You can also add this code on top of the code snippet to label your mu plugin.
- Ultimate Multisite 101
- Basic Concepts
- What is WordPress Multisite?
- Ultimate Multisite Requirements
- Why Ultimate Multisite
- Installing Ultimate Multisite (v2)
- How do I Install WordPress Multisite?
- Understanding the Ultimate Multisite Dashboard
- Understanding your Dashboard (v2)
- Touring the Admin Panel
- Managing Customers
- Managing Sites
- Managing Memberships (v2)
- Managing Payments and Invoices
- Managing System Emails
- Site Templates (v2)
- Auto Search and Replace in Site Templates (v2)
- Checkout Forms
- Creating your First Subscription Product (v2)
- Creating Discount Codes (v2)
- Managing Shareable Links for Plans
- Customizing your Registration Form
- The Registration Flow (v2)
- How to Configure Domain Mapping (v2)
- How to configure domain mapping (v1)
- Setting the Sunrise constant to true on Closte
- Closte Integration
- Cloudflare Integration
- Cloudways Integration
- cPanel Integration
- GridPane Integration
- RunCloud Integration
- ServerPilot Integration
- WP Engine Integration
- WPMU DEV Integration
- Setting Up The Stripe Gateway (v2)
- Setting Up The PayPal Gateway (v2)
- Setting Up Manual Payments (v2)
- Getting Started with the PayFast Payment Gateway
- Getting Started with the GoCardless Payment Gateway
- Getting Paid (v2)
- Tax Handling
- Your Client's Account Page (v2)
- Your Client's Websites (v2)
- Upgrading a Plan (v2)
- Downgrading a plan (v2)
- Canceling a Membership (v2)
- How can I access my account page for the first time?
- How can I cancel my subscription?
- Setting Up The WooCommerce Integration (v2)
- Integrating Ultimate Multisite with Zapier
- Event: Register an account via Zapier
- Using Ultimate Multisite: MailChimp Integration
- Using Ultimate Multisite: AffiliateWP Integration to create your own referral program for Ultimate Multisite
- A First Look on Webhooks (v2)
- Customizing your Admin Panel with PRO Theme
- Customizing your Admin Panel with Material WP
- Placing Ads on your network with Ultimate Multisite: Ad Injector
- Creating Custom Admin Pages and Sub-pages using Ultimate Multisite: Admin Page Creator
- Editing Plugins and Themes Meta Information with Ultimate Multisite: Plugin and Theme Manager
- Ultimate Multisite Hooks and filters
- The Ultimate Multisite Register API endpoint
- How to use Ultimate Multisite snippets on our GitHub repository
- Code Snippets for v2
- How to Get Custom Development Help from Codeable?
- Translating Ultimate Multisite
- Activating Ultimate Multisite: Language Selector
- Re-ordering the Ultimate Multisite country list
