I want to show custom option values from the child site.
I have added multiple sites to the main WP dashboard. So now I want to show the custom option value for each site. I have done the listing but how can I get the option value for each site?
Yes I have added a custom page under the sites through hook. And also I have listed all connected sites with the $website object where I can get the website object. Now I want to show the custom option value for each website.
$connected_websites = MainWP_DB::Instance()->get_connected_websites();
if(!empty($connected_websites)){
foreach($connected_websites as $connected_website){
$website = MainWP_DB::instance()->get_website_by_id( $connected_website['id'] );
// Now I want to option value here. Or you can give me an idea how can I get the value?
}
}
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
WordPress® is a registered trademark of the WordPress Foundation, and WooCommerce® is a registered trademark of WooCommerce, Inc. MainWP is an independent product and is not affiliated, associated, or endorsed by the WordPress Foundation, WooCommerce, Inc., or Automattic Inc., except where noted under the Jetpack® API and Trademark License Agreement. All product names, logos, and brands are property of their respective owners and are used for identification purposes only.