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
- How to delete post revisions?
- How to get blog name, when using WordPress Multisite
- Which asset URLs are acceptable in a “vanilla” MU install?
- COOKIE_DOMAIN setting confusion
- Multisite: use media from one site vs. copying the same media to all language sites?
- Editing theme files and access to the Code pages only to super-admin?
- Nginx rules for subdomain multisite install (Bedrock)
- “Upgrade Network” error: stuck with SSL certificate verification
- when using add_user_to_blog getting error “Call to undefined function get_userdata”
- Restrict the user access in multi site for non-assigned blogs
- Getting an ERROR: Cookies are blocked error when logging in to a site on a different domain?
- display merged posts from multisite and sort by latest date
- Force Uploads Use Yearmonth to off (0) for all existing sites in Multisites
- WordPress Multisite – Multiple Subdirectories
- Changing admin sub-domain in WordPress multisite
- Why are images uploaded to main domain, when using multisite with different domains?
- How to Redirect login User with Mapped Domiain Primary blog Url to Original Sub-site Url
- Determining the compatibility of Settings API & Multisite
- Update User Role Across Network when Main Site User is Updated
- Get the User ID Who Owns a Given Blog ID in Multisite
- Create custom role, multisite, add users/sites?
- https redirect hell (adding www)
- Redirect subdomain in Multisite installation?
- Will revisions be retained when converting to a multi-site?
- Include only a domain path in multisite Network
- Jetpack API for WordPress Network
- Multisite User cannot access dashboard
- Acivate all themes multisite wide automatically
- WordPress Multisite logout conflict
- SEO implications of assigning a new domain to a multisite subdomain [closed]
- How can I add custom meta on signup page and pass along to be used after blog activation?
- How to check main blog in a multisite using if statement?
- Multisite – Multiple logo?
- One Site as a part of Multisite to be hidden (Un-published) from Public?
- Multisite signup spam troubles
- Is there is a way to group a large number of WordPress Multisites For Easier Organisation?
- How can I map the primary domain for subsite as subdirectory for another domain?
- How to delete users from a WordPress MultiSite that stay in the DB?
- Installing other applications alongside WordPress multisite and configuring dns routing
- All Network sites display as main blog
- How to share User Database between Two Multisite Installations + More
- Two WordPress Installs — Failed page on One Defaults to the Other
- How to test custom links within a multisite while in development stage
- How to enable wp-admin and wp-login only over highport
- Error while localizing communityEventsData in script-loader.php
- Easily adding multiple existing users to a multisite site
- Display posts from one network site on another
- Multisite network on new domain
- Update siteurl and home in multisite subsites to https
- WordPress multi-domain with multiple sites with multiple languages
- Domain level problem for multisite?
- How can I import posts into different wordpress multisites at once?
- Redirect www.mainsite.com/subsite/wp-login to www.mainsite.com/wp-login
- Activation of new Registered site fails on multisite
- How to login a user with wp_set_auth_cookie on a specific blog within a multisite environment
- How does adding custom meta to signup form work?
- Can’t un-archive site after upgrading to WordPress 3.8
- Cookies in Multisite network where sites have their own domain name?
- Swap domains of two sites with each other in multisite
- 404 error in dashboard of subdomain of multisite
- WordPress Multisites