Is there a way to call upon the current site_id
when processing a Pro Reports template? I’d like to use it to grab a site token via the MainWP_Pro_Reports_DB::get_instance()->get_tokens_by()
. Thanks for any direction on this.
Hi Joshua, along with the version that I have sent you via private message, can you please try the following
$site_id = 0;
if ( !is_null( $website ) && !empty( $website ) ) {
$site_id = $website['id'];
}
1 Like
Works marvelously! I assume you’ll merge this into a future release. Thank you!
1 Like
yes, it will be included in the official version.
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.