get_website_by_id( $current_wpid, true ); static::render_info( $website ); } /** * Render Sites Info. * * @param object $website Object containing the child site info. */ public static function render_info( $website ) { //phpcs:ignore -- NOSONAR - complex. $client_info = $website->client_id ? MainWP_DB_Client::instance()->get_wp_client_by( 'client_id', $website->client_id, ARRAY_A ) : false; ?>

' . esc_html__( 'Active', 'mainwp' ) . ''; } elseif ( 1 === intval( $client_info['suspended'] ) ) { $client_status = '' . esc_html__( 'Suspended', 'mainwp' ) . ''; } elseif ( 2 === intval( $client_info['suspended'] ) ) { $client_status = '' . esc_html__( 'Lead', 'mainwp' ) . ''; } elseif ( 3 === intval( $client_info['suspended'] ) ) { $client_status = '' . esc_html__( 'Lost', 'mainwp' ) . ''; } /** * Action: mainwp_clients_info_table_top * * Fires at the top of the Site Info table in Site Info widget on the Individual site overview page. * * @param object $website Object containing the child site info. * * @since 4.0 */ do_action( 'mainwp_clients_info_table_top', $website ); ?>

.