Sure, this is easy. The following condition is for all sites with ID equal or higher than 446 that at the same time have a blog title that contains the four letters test next to each other, whether they have intervals around them or not (so keep in mind it will include other words too, like testify or protest unless we change the code a little).
$blog_id = get_current_blog_id();
$blog_details = get_blog_details( $blog_id );
if ( strpos( $blog_details->blogname, 'test' ) !== false && $blog_id >= 446 ) {
// Run some code here
}
Related Posts:
- Allow user to select a theme to install when they signup
- Changing Multisite themes on mass
- Is there an easy way to separate themes on network?
- Hide a theme on list of themes in wp-admin without editing core files
- Can I install a theme on only one site of a multi-site network install?
- Can’t find “Add New” button for themes in a multisite
- How to move theme directory but not plugins/uploads out of WordPress root directory?
- Manipulate list of themes in wp-admin
- Subfolder multisite issue. Themes and plugin files 404
- cant enable theme in multisite
- Bulk activate a theme on multisite
- Using Two Themes – One for Main Site, One for Ecommerce
- Multi-site get_bloginfo(‘stylesheet_directory’) referring to sub-folder
- Multisite theme control not working
- WordPress MultiSite Theme
- Update configured themes
- How to show different sub sites based on Member’s user name In word press?
- Does a single theme license work on multisite? [closed]
- Create a CSS file in plugin folder when theme is activated
- Is it necessary to network enable both the parent and child theme for multisite installations?
- Trying to change active theme on all sites in Multisite
- Multisite > Edit Site > Themes – what are these themes?
- WordPress multisite with same content
- How to automate setup of theme, pages, widgets, etc for a new site in multi-site?
- Why WordPress w/ Nginx Multisite Only Lets Admin Upload ZIP Plugins But Not Themes? [closed]
- May I do multiple micro-sites with different themes in a single wordpress without subdirectory nor subdomain separation?
- How can I have two or more WordPress Pro (paid) themes that form a single website?
- Create link preview for theme wordpress
- Themes are visible in Network, but invisible in sites
- WordPress theme to support single website but with 3 sections for 3 languages
- WordPress Multisite – Auto enable theme
- Whats the best Practice for using a different Theme for WebView Apps?
- Creating a stand-alone site from a WordPress sub site
- Updating themes customized by users
- How to handle responsive and non responsive websites in one WordPress Theme?
- In a MS install, can you allow different users to have their own themes?
- How to mass change theme for all Multisite network sites?
- Iterating over every multisite / theme and list the pages
- different image for mobile template block theme
- Export/Import Blog Post from and to sites with different themes?
- Can i merge 2 new WP_Query($variable) ‘s?
- How to reliably flush rewrite rules on multisite?
- Convert a Multisite WordPress install into a Single site
- Why are my roles not visible in a Multi-site/Network?
- How to use same email for multiple users
- Using wp_insert_post() with Networking enabled
- Sharing Dynamic Sidebars across Multisite Blogs
- Multisite: How to store global options vs. site options?
- Mega WordPress Applications WPMU or otherwise
- Does the WordPress API work with multisite?
- wp_get_attachment_image_src multisite issue
- Transfer Subdomain site to Multisite setup
- WP REST API – Multisite – get posts from all sites
- WordPress Multisite Network installation and dev questions
- How properly delete only one site (blog) from the Network in WordPress Multisite (WPMU)
- What is the best way to setup wordpress development environment for freelancers with version control?
- Turn off trackback/pingbacks and comments on all existing multisite sites
- My subsites accidentally went from one multisite network to another. How do I change it back?
- How to change a WordPress network domain
- Multisite sub-site dashboard redirects to /wp-admin/
- Trying to access second site dashboard on a multisite configuration proceeds to an error
- Get source from the_post_thumbnail
- How to configure WordPress Multisite by bash script?
- WordPress Multisite subdirectories not allowed on new install?
- Creating multisite in wordpress using php
- How to use both British and American English?
- Members area with externally-managed htaccess / htpasswd authentication?
- Using Multisite with a CDN?
- Creating a better multi-site search experience
- BackPress – which libraries i need to load to work with Multisite?
- WordPress Multisite Sites show in Dropdown but not in Sites menu
- WP Multisite Static Frontpage
- Depth > 2 possible with multisite?
- What are Attributes used for in a WordPress Multisite?
- Architectural reasons behind sitemeta, blogs, home, site and DOMAIN_CURRENT_SITE redundancy
- Login on Multiple Sub-Domains without Multisite
- Prevent images on self-hosted WordPress from being served from WordPress.com
- Redirecting non www to www ONLY for domain, subdomain without www
- WordPress with Lan and Wan Access?
- Moving WordPress Multisite
- WordPress multisite fails to create a new site in the network
- WordPress multisite with subdomain and directory simultaneously
- WordPress Multisite Wildcard Subdomains on Plesk
- WordPress Multisite Question
- Single install or multisite?
- Wrong Redirect/Rewrite Rules?
- Four columns in the wp_users table
- WordPress Folder Multisite – dev, staging, www versions
- Is this the right set of records for Route53 domain to point to a mapped domain in a multisite? [closed]
- Setup a multisite to a running website
- Initiate multisite with blog_id outside of wordpress
- Show media-frame-menu on custom Media Frame
- How to run a WordPress site across multiple ccTLDs?
- Why is MySQL receiving such a large serialized object?
- How can I remove the folder from a Multisite URL?
- Update post meta using save_post hook in multisite
- Nginx — WordPress multisite with root folder in own directory
- wordpress multisite is broken in nginx but working in apache
- Mixing a custom php index page with multi-site installation
- What could be changing my WP password and blocking plugins from installing?