Title: How to extend WP-CLI to access is_multisite function.
Last modified: June 25, 2024

---

# How to extend WP-CLI to access is_multisite function.

 *  [phoenix26](https://wordpress.org/support/users/phoenix26/)
 * (@phoenix26)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/how-to-extend-wp-cli-to-access-is_multisite-function/)
 * Hi,
 * I have a simple bash script that sits on a redhat server and needs to check if
   a particular WordPress (6.5.4) folder is a multi-site or not. I spotted this 
   in the docs:
 * [https://developer.wordpress.org/reference/functions/is_multisite/](https://developer.wordpress.org/reference/functions/is_multisite/)
 * I’ve added my basic code below, but my script doesn’t like the syntax. I’m new
   to bash and PHP and wondered if I can achieve this via extending WP-CLI access
   or if I need my Bash script to call into a PHP function? Any tips/examples of
   the best way to achieve this are most appreciated.
 * vim multisitecheck.sh
 * require_once(“wp-load.php”);
 * if ( is_multisite() )
   then echo multisite presentfiecho check complete
 * Many Thanks.

Viewing 1 replies (of 1 total)

 *  Moderator [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * (@jcastaneda)
 * THEME COFFEE MONKEY
 * [1 year, 11 months ago](https://wordpress.org/support/topic/how-to-extend-wp-cli-to-access-is_multisite-function/#post-17849364)
 * Please don’t open a new topic. Continue on the one that you have previously started
   here: [https://wordpress.org/support/topic/accessing-is_multisite-via-a-bash-script/](https://wordpress.org/support/topic/accessing-is_multisite-via-a-bash-script/)
 * Closing this one out in favor of the prior one.

Viewing 1 replies (of 1 total)

The topic ‘How to extend WP-CLI to access is_multisite function.’ is closed to new
replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 1 participant
 * Last reply from: [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/how-to-extend-wp-cli-to-access-is_multisite-function/#post-17849364)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
