WordPress multisite – select site in API

Arun - 27/03/2020 5:01 PM

Files 1

file.php
php
<?php

define("APIPATH","SAMPLEAPIPATH");
define("API_FOR_SITE",3); //change site ID from here for multisite

require('../wp-load.php');
switch_to_blog(API_FOR_SITE);