wp-includes/class-wp-plugin-dependency-installer.php
/**
	 * Unset plugin action links so required plugins can't be removed or deactivated.
	 *
	 * @param array  $actions     Action links.
	 * @param string $plugin_file Plugin file.
	 *
	 * @return mixed
	 */
Unset plugin action links so required plugins can't be removed or deactivated.
@param array  $actions     Action links.
@param string $plugin_file Plugin file.

@return mixed
Unset plugin action links so required plugins can ' t be removed or deactivated . @param array $actions Action links . @param string $plugin_file Plugin file . @return mixed
public function unset_action_links( $actions, $plugin_file ) {
		if ( isset( $actions['delete'] ) ) {
			unset( $actions['delete'] );
		}
		if ( isset( $actions['deactivate'] ) ) {
			unset( $actions['deactivate'] );
		}
		$actions = array_merge( array( 'required-plugin' => sprintf( esc_html__( '%1$sRequired Plugin%2$s' ), '<span class="network_active" style="font-variant-caps: small-caps;">', '</span>' ) ), $actions );
		return $actions;
	}
public function unset_action_links ( $ actions , $ plugin_file ) { if ( isset ( $ actions [ 'delete' ] ) ) { unset ( $ actions [ 'delete' ] ) ; } if ( isset ( $ actions [ 'deactivate' ] ) ) { unset ( $ actions [ 'deactivate' ] ) ; } $ actions = array_merge ( array ( 'required-plugin' => sprintf ( esc_html__ ( '%1$sRequired Plugin%2$s' ) , '<span class="network_active" style="font-variant-caps: small-caps;">' , '</span>' ) ) , $ actions ) ; return $ actions ; }
Unset plugin action links so required plugins can't be removed or deactivated.
Unset plugin action links so required plugins can ' t be removed or deactivated .
/* translators: %s: opening and closing span tags */