protected function handle_row_actions( $network, $column_name, $primary ) {

		// Bail if not primary column.
		if ( $primary !== $column_name ) {
			return;
		}

		switch_to_network( $network->id );
		$network_admin_url = network_admin_url();
		$network_home_url  = network_home_url();
		restore_current_network();

		$base_url = add_query_arg( array(
			'page' => 'networks',
			'id'   => $network->id,
		) );

		$actions = array();

		// Edit the network.
		if ( current_user_can( 'edit_network', $network->id ) ) {
			$edit_network_url = add_query_arg( array(
				'action' => 'edit_network',
			), $base_url );

			$actions['edit'] = '<span class="edit"><a href="' . esc_url( $edit_network_url ) . '">' . esc_html__( 'Edit', 'wp-multi-network' ) . '</a></span>';
		}

		// Visit the network dashboard.
		if ( current_user_can( 'manage_networks' ) ) {
			$actions['network_admin'] = '<span><a href="' . esc_url( $network_admin_url ) . '">' . esc_html__( 'Dashboard', 'wp-multi-network' ) . '</a></span>';
		}

		// Visit the network main site.
		$actions['visit'] = '<span><a href="' . esc_url( $network_home_url ) . '">' . esc_html__( 'Visit', 'wp-multi-network' ) . '</a></span>';

		// Delete the network.
		if ( $this->can_delete( $network ) ) {
			$delete_network_url = wp_nonce_url( add_query_arg( array(
				'action' => 'delete_network',
			), $base_url ) );

			$actions['delete'] = '<span class="delete"><a href="' . esc_url( $delete_network_url ) . '">' . esc_html__( 'Delete', 'wp-multi-network' ) . '</a></span>';
		}

		/**
		 * Filters the networks list table row action links.
		 *
		 * @since 2.0.0
		 *
		 * @param array  Action links as $slug => $link_markup pairs.
		 * @param int    The current network ID.
		 * @param string The current network name.
		 */
		$actions = apply_filters( 'manage_networks_action_links', array_filter( $actions ), $network->id, $network->sitename );

		return $this->row_actions( $actions );
	}
protected function handle_row_actions( $network, $column_name, $primary ) {

		// Bail if not primary column.
		if ( $primary !== $column_name ) {
			return;
		}

		switch_to_network( $network->id );
		$network_admin_url = network_admin_url();
		$network_home_url  = network_home_url();
		restore_current_network();

		$base_url = add_query_arg( array(
			'page' => 'networks',
			'id'   => $network->id,
		) );

		$actions = array();

		// Edit the network.
		if ( current_user_can( 'edit_network', $network->id ) ) {
			$edit_network_url = add_query_arg( array(
				'action' => 'edit_network',
			), $base_url );

			$actions['edit'] = '<span class="edit"><a href="' . esc_url( $edit_network_url ) . '">' . esc_html__( 'Edit', 'wp-multi-network' ) . '</a></span>';
		}

		// Visit the network dashboard.
		if ( current_user_can( 'manage_networks' ) ) {
			$actions['network_admin'] = '<span><a href="' . esc_url( $network_admin_url ) . '">' . esc_html__( 'Dashboard', 'wp-multi-network' ) . '</a></span>';
		}

		// Visit the network main site.
		$actions['visit'] = '<span><a href="' . esc_url( $network_home_url ) . '">' . esc_html__( 'Visit', 'wp-multi-network' ) . '</a></span>';

		// Delete the network.
		if ( $this->can_delete( $network ) ) {
			$delete_network_url = wp_nonce_url( add_query_arg( array(
				'action' => 'delete_network',
			), $base_url ) );

			$actions['delete'] = '<span class="delete"><a href="' . esc_url( $delete_network_url ) . '">' . esc_html__( 'Delete', 'wp-multi-network' ) . '</a></span>';
		}

		/**
		 * Filters the networks list table row action links.
		 *
		 * @since 2.0.0
		 *
		 * @param array  Action links as $slug => $link_markup pairs.
		 * @param int    The current network ID.
		 * @param string The current network name.
		 */
		$actions = apply_filters( 'manage_networks_action_links', array_filter( $actions ), $network->id, $network->sitename );

		return $this->row_actions( $actions );
	}
protected function handle_row_actions ( $ network , $ column_name , $ primary ) { // Bail if not primary column. if ( $ primary !== $ column_name ) { return ; } switch_to_network ( $ network -> id ) ; $ network_admin_url = network_admin_url ( ) ; $ network_home_url = network_home_url ( ) ; restore_current_network ( ) ; $ base_url = add_query_arg ( array ( 'page' => 'networks' , 'id' => $ network -> id , ) ) ; $ actions = array ( ) ; // Edit the network. if ( current_user_can ( 'edit_network' , $ network -> id ) ) { $ edit_network_url = add_query_arg ( array ( 'action' => 'edit_network' , ) , $ base_url ) ; $ actions [ 'edit' ] = '<span class="edit"><a href="' . esc_url ( $ edit_network_url ) . '">' . esc_html__ ( 'Edit' , 'wp-multi-network' ) . '</a></span>' ; } // Visit the network dashboard. if ( current_user_can ( 'manage_networks' ) ) { $ actions [ 'network_admin' ] = '<span><a href="' . esc_url ( $ network_admin_url ) . '">' . esc_html__ ( 'Dashboard' , 'wp-multi-network' ) . '</a></span>' ; } // Visit the network main site. $ actions [ 'visit' ] = '<span><a href="' . esc_url ( $ network_home_url ) . '">' . esc_html__ ( 'Visit' , 'wp-multi-network' ) . '</a></span>' ; // Delete the network. if ( $ this -> can_delete ( $ network ) ) { $ delete_network_url = wp_nonce_url ( add_query_arg ( array ( 'action' => 'delete_network' , ) , $ base_url ) ) ; $ actions [ 'delete' ] = '<span class="delete"><a href="' . esc_url ( $ delete_network_url ) . '">' . esc_html__ ( 'Delete' , 'wp-multi-network' ) . '</a></span>' ; } /**
		 * Filters the networks list table row action links.
		 *
		 * @since 2.0.0
		 *
		 * @param array  Action links as $slug => $link_markup pairs.
		 * @param int    The current network ID.
		 * @param string The current network name.
		 */ $ actions = apply_filters ( 'manage_networks_action_links' , array_filter ( $ actions ) , $ network -> id , $ network -> sitename ) ; return $ this -> row_actions ( $ actions ) ; }
Generates row action links markup.

@since 2.0.0

@param WP_Network $network     Site being acted upon.
@param string     $column_name Current column name.
@param string     $primary     Primary column name.

@return string Row actions output.
Generates row action links markup .